initialize map c++

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

Also in C++: