|
|
|
|
|
by boost_
3947 days ago
|
|
this is a reply to vvanders comment, for some reason i cant reply directly to his comment, so ill reply to myself.. they didn’t really "fix" it, instead they added a method called std::vector<T>::shrink_to_fit() which i'll admit its not the most elegant way, but it works. what it does is, it resizes the capacity() to be the same as the size(), deallocating all the extra memory. |
|