Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/container/map"

From cppreference.com
< cpp‎ | container
(Undo revision 160289 by Messenger (talk))
m (Add langlinks)
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{<!---->{"CPU", 10}, {"GPU", 15}, {"RAM", 20}<!---->};
+
     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:32, 9 October 2023

|} -->