Why does std::vector::shrink_to_fit() have no effect when exceptions are disabled?
When compiling using gcc 14.2 (or Clang), std::vector::shrink_to_fit()
has no effect when exceptions are disabled. This can be demonstrated through the following code (Live on Compiler Explorer):