What is the reallocation strategy used for std::string and std::vector in GCC\'s implementations?
I\'m interested in the specific strategy employed: When I append it
All bets are off on how exactly reserve works. You use it something like this:
reserve
std::vector myV; myV.reserve();
so you know reserve won't have to be called (nor any re-allocation performed) until after that space is exceeded.