After all the datas are insert to the MAP, is it is possible to re-sort the MAP using some other key ??
No, that's not possible. An std::map is always sorted by the key type that is given to it at compile-time. The only way you can sort by something else is to copy the contents to a new map or vector which is then sorted on a different key.
You must erase the key and use a different key.
I'm not sure what you mean here.
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
Originally posted by Paul McKenzie
Assuming that the OP wants to have the data show up somewhere else in the map, he has to delete the old key and reinsert the data with a new key.
Ah, I get it. I didn't the read the question that way
Get this small utility to do basic syntax highlighting in vBulletin forums (like Codeguru) easily.
Supports C++ and VB out of the box, but can be configured for other languages.
Bookmarks