Difference between revisions of "cpp/container/map"
From cppreference.com
Andreas Krug (Talk | contribs) |
m |
||
Line 1: | Line 1: | ||
+ | <!-- | ||
{{cpp/title|map}} | {{cpp/title|map}} | ||
{{cpp/container/map/navbar}} | {{cpp/container/map/navbar}} | ||
Line 149: | Line 150: | ||
{ | { | ||
// Create a map of three (string, int) pairs | // Create a map of three (string, int) pairs | ||
− | std::map<std::string, int> m{ | + | std::map<std::string, int> m = {{"Vandalized?", (int)true}}; |
print_map("1) Initial map: ", m); | print_map("1) Initial map: ", m); | ||
Line 195: | Line 196: | ||
{{langlinks|de|es|fr|it|ja|pl|pt|ru|zh}} | {{langlinks|de|es|fr|it|ja|pl|pt|ru|zh}} | ||
+ | --> |
Revision as of 14:36, 15 September 2023
|} -->