Use of List inside map C++ - Stack Overflow

PHOTO EMBED

Tue Apr 06 2021 19:25:41 GMT+0000 (Coordinated Universal Time)

Saved by @wowza12341

std::map<int,std::list<int>> my_map;
my_map[10].push_back(10000);
my_map[10].push_back(20000);
my_map[10].push_back(40000);
content_copyCOPY

This is how to store a List into a Map.

https://stackoverflow.com/questions/8192570/use-of-list-inside-map-c