This is useful for minimizing memory usage of a long-lived container after deletions, and was added to `std::vector` in C++11.