https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124121

--- Comment #12 from Tomasz KamiƄski <tkaminsk at gcc dot gnu.org> ---
Instead of zeroing whole array at runtime for trivially default contractible
and destructible type we can just do:
```
_M_elems[0] = _Tp();
_M_elems[0].~_Tp();
```
This have constant cost regardless of capacity. The only meaningful case is if
the _Tp itself is large.

Reply via email to