map c++ initialize code example
Example 1: how to initialize map in c++
std::map<std::string,std::string> my_map = {
{"key1","value1"},
{"key2","value2"}
};
Example 2: initialize map c++
std::map<std::string, int> mapOfMarks = {
{"Riti",2},
{"Jack",4}
};