Check out example codes for "how to initialize map in c++". It will help you in understanding the concepts better.

Code Example 1

std::map<std::string,std::string> my_map = {
  {"key1","value1"},
  {"key2","value2"}
};

Code Example 2

std::map<std::string, int> mapOfMarks = {
		{"Riti",2},
		{"Jack",4}
};

Learn ReactJs, React Native from akashmittal.com