I have inserted some values in a C++ Map, now I want to edit the value associated with a key. I can insert and delete but how to edit?
Any hints?
I have tried this:
This gives me an error:Code:map <unsigned int, QTcpSocket*> :: iterator objTempIter;
objTempIter = mapName.end ();
(*objTempIter).first = 22;
Code:error: assignment of read-only data-member ‘std::pair<const unsigned int, QTcpSocket*>::first’