4 ms·
> C++ supports it in the Standard Library, for all the standard containers. I don't know what the situation is today, but in the past, the GCC standard library
by ShroudedNight 6y ago
> C++ supports it in the Standard Library, for all the standard containers.
I don't know what the situation is today, but in the past, the GCC standard library containers had non-trivial destructors when running in debug mode. Ensuring their proper invocation was required to avoid dangling pointers in their book keeping. Non-obvious and painful to debug.