]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use RAII in std::vector::_M_default_append
authorJonathan Wakely <jwakely@redhat.com>
Tue, 20 Jun 2023 12:39:29 +0000 (13:39 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 5 Jul 2023 06:39:04 +0000 (07:39 +0100)
commit4870a18ac2d5e0bd8515ea473006071e65622e52
tree90ece059749794a8be93b43deaa9457f161ebe96
parent49f2b325ec7a49e41fc107239542eae0eb6d364e
libstdc++: Use RAII in std::vector::_M_default_append

Similar to r14-2052-gdd2eb972a5b063, replace the try-block with RAII
types for deallocating storage and destroying elements.

libstdc++-v3/ChangeLog:

* include/bits/vector.tcc (_M_default_append): Replace try-block
with RAII types.
libstdc++-v3/include/bits/vector.tcc