]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Replace some uses of std::__addressof with std::addressof
authorJonathan Wakely <jwakely@redhat.com>
Thu, 22 May 2025 13:49:25 +0000 (14:49 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 11 Jun 2025 09:35:27 +0000 (10:35 +0100)
commit1e8077634fbe80553003c857eb6d77d5b011843e
tree033404fcae531c536c588a3a3b7b95aff44ec741
parentdb0cee881f6c76921d614fc401f878b9e1b79640
libstdc++: Replace some uses of std::__addressof with std::addressof

Since r16-154-gc91eb5a5c13f14 std::addressof is no less efficient than
std::__addressof, so change some uses of the latter to the former.  We
can't change them all, because some uses need to compile as C++98 which
only has std::__addressof.

Similarly, since r16-848-gb2aeeb2803f97b std::is_constant_evaluated is
no less efficient than std::__is_constant_evaluated.

libstdc++-v3/ChangeLog:

* include/bits/stl_construct.h: Replace std::__addressof with
std::addressof in code that doesn't need to compile as C++98.
Replace std::__is_constant_evaluated with
std::is_constant_evaluated in code that doesn't need to compile
as C++17 or earlier.
* include/bits/stl_uninitialized.h: Likewise for __addressof.
libstdc++-v3/include/bits/stl_construct.h
libstdc++-v3/include/bits/stl_uninitialized.h