2 ms·
At `-O1` and higher, `clang` recognizes the `reserve()` pattern and turns it into the reserving constructor[1]. GCC does the same[2]. [1]: https://godbolt.org/
by woodruffw 4y ago
At `-O1` and higher, `clang` recognizes the `reserve()` pattern and turns it into the reserving constructor[1]. GCC does the same[2].
[1]: https://godbolt.org/z/Tjazsd686 https://godbolt.org/z/Tjazsd686
[2]: https://godbolt.org/z/7nWEe1d4b https://godbolt.org/z/7nWEe1d4b