#include #include #include int main() { std::map m { { 1, "hello" }, { 2, "world" } }; for (auto const& p: m) { std::cout << p.first << ": " << p.second << std::endl; } }