// Map created std::map<int, std::vector<int>> _map; // Key/Data inserted _map.insert(std::pair<int, std::vector<int> >(0, { i })); // Display values [ERROR] for (const auto &p : _map) { std::cout << "m[" << p.first << "] = " << p.second << '\n'; } It is a very simple program of creating a map, inserting values and display both key/pair by iterating over the entire map. I am able to display map key (p.first) but I am not able to display the value of data (p.second).
Error C2679: binary '<<' : no operator found which takes a right-hand operand of type 'const std::vector>' (or there is no acceptable conversion)
for(auto &pp : p.second) {std::cout<<pp; }