and I am trying to insert into the map as in the following snippet:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
vector<string> mill_pos_v;
vector<vector<string>> mill_pos_set_v;
//a0
mill_pos_v.push_back("b1");
mill_pos_v.push_back("c2");
mill_pos_set_v.push_back(mill_pos_v);
mill_pos_v.clear();
mill_pos_v.push_back("a3");
mill_pos_v.push_back("a6");
mill_pos_set_v.push_back(mill_pos_v);
mill_pos_v.clear();
mill_pos_v.push_back("d0");
mill_pos_v.push_back("g0");
mill_pos_set_v.push_back(mill_pos_v);
mill_pos_v.clear();
///the value does not get inserted into the map here
mill_positions["a0"]=mill_pos_set_v;
mill_pos_set_v.clear();
but nothing gets inserted into the map. Is there some other way I should do this? Or is there any other approach to do the same task?
I hope I've been able to make myself clear. Could someone please help me with this?
I'm sorry! I posted it at first here and wasn't sure if this was the right forum and so, re-posted it in the General C++ programming forum. I'll remove this.