I am new to map in C++ and have one 3D map, like this
map<int,map<const char*,const char*>>Map3D;
I want to insert values in such a way that int value increments when both const char* values are more than 50. I am keeping a track of const char* value. Can anyone tell me how i can insert value in this map. I am doing something like this
Map3D.insert(pair<int,map<const char* ,const char*>(count,pair<const char*,const char*>(TempA,TempB)));
But it's not working.
EDIT
std::map<int,map<const char*,const char*>>::iterator it= Map3D.begin();
std::map<const char*, const char*>::iterator sub_it = subMap.begin();