]> gcc.gnu.org Git - gcc.git/commit
libstdc++: Add missing noexcept to std::scoped_allocator_adaptor
authorJonathan Wakely <jwakely@redhat.com>
Fri, 26 May 2023 20:33:58 +0000 (21:33 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 18 Mar 2024 11:28:51 +0000 (11:28 +0000)
commit65704fa293ca9d5f9186aa09037fc2869492973b
tree79b429f3839f122e4ca51aaf35cefd749b21ee2b
parentceb82ba594a6c24f33351eda0ae3fbb6fd6d841a
libstdc++: Add missing noexcept to std::scoped_allocator_adaptor

The standard requires these constructors and accessors to be noexcept.

libstdc++-v3/ChangeLog:

* include/std/scoped_allocator (scoped_allocator_adaptor): Add
noexcept to all constructors except the default constructor.
(scoped_allocator_adaptor::inner_allocator): Add noexcept.
(scoped_allocator_adaptor::outer_allocator): Likewise.
* testsuite/20_util/scoped_allocator/noexcept.cc: New test.

(cherry picked from commit b960c253e988c68ed3f3829125bc267bdf169356)
libstdc++-v3/include/std/scoped_allocator
libstdc++-v3/testsuite/20_util/scoped_allocator/noexcept.cc [new file with mode: 0644]
This page took 0.060402 seconds and 6 git commands to generate.