samedi 24 septembre 2016

Memory allocations when using unordered_map

If a std::unordered_map<int,...> was to stay roughly the same size but continually add and remove items, would it continually allocate and free memory or cache and reuse the memory (ie. like a pool or vector)? Assuming a modern standard MS implementation of the libraries.

Aucun commentaire:

Enregistrer un commentaire