Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

initialize unordered_map c++

unordered_map<int, string> m =
    {
        {1, "one"},
        {2, "two"},
        {3, "three"}
    };
C++Copy
Source by iq.opengenus.org #
 
PREVIOUS NEXT
Tagged: #initialize
ADD COMMENT
Topic
Name
4+6 =