If I have:
std::map<int,in tm;
where I have:
m.insert(std::m ake_pair(1,2));
how do I update the value to 7 associated with key = 1?
I was thinking:
(*m.find(1)).se cond = 7;
But is there no simpler way?
std::map<int,in tm;
where I have:
m.insert(std::m ake_pair(1,2));
how do I update the value to 7 associated with key = 1?
I was thinking:
(*m.find(1)).se cond = 7;
But is there no simpler way?
Comment