#include #include "hack/logger/logger.hpp" #include "hack/iterators/associative_ostream_iterator.hpp" #include "hack/concepts/concepts.hpp" template static void print_t(const T& data) { std::cout << "{"; std::copy(data.cbegin(), data.cend(), hack::iterators::associative_ostream_iterator(data.size(), std::cout)); std::cout << "}"; } auto main(int argc, char *argv[]) -> int { std::map m { { "a", 1 }, { "b", 2 } }; for (auto& [key, value] : m) hack::log()(key, value); print_t(m); }