]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use RAII in std::vector::_M_realloc_insert
authorJonathan Wakely <jwakely@redhat.com>
Tue, 20 Jun 2023 12:39:29 +0000 (13:39 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 23 Jun 2023 18:04:41 +0000 (19:04 +0100)
commitdd2eb972a5b063e10c83878d5c9336a818fa8291
treeb988dc481a5ecf23ecd119e61f556d2164dbd1ff
parent3124bfb14c0bdc08554b7c2bbec4e2650fad4445
libstdc++: Use RAII in std::vector::_M_realloc_insert

Replace the try-block with RAII types for deallocating storage and
destroying elements.

libstdc++-v3/ChangeLog:

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