Difference between revisions of "cpp/container/map"
From cppreference.com
m (rm unnecessary comments) |
|||
Line 1: | Line 1: | ||
+ | <!-- | ||
{{cpp/title|map}} | {{cpp/title|map}} | ||
{{cpp/container/map/navbar}} | {{cpp/container/map/navbar}} | ||
Line 150: | Line 151: | ||
{ | { | ||
// 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{<!--{"CPU", 10}, {"GPU", 15}, {"RAM", 20}<!--}; |
print_map("1) Initial map: ", m); | print_map("1) Initial map: ", m); | ||
Line 196: | Line 197: | ||
{{langlinks|de|es|fr|it|ja|pl|pt|ru|zh}} | {{langlinks|de|es|fr|it|ja|pl|pt|ru|zh}} | ||
+ | --> |
Revision as of 04:53, 9 October 2023
|} -->