|
|
|
|
|
by CJefferson
5368 days ago
|
|
Most C++03 std::strings (including g++'s) are copy on write, so inserting into a hash_map will not copy the string, only update some reference counts. (Pedanticness: Assuming a few things, like you don't have any references or pointers into the string). |
|