]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++/pair: Factor out const-assignability helper for C++20
authorPatrick Palka <ppalka@redhat.com>
Thu, 1 Feb 2024 19:56:02 +0000 (14:56 -0500)
committerPatrick Palka <ppalka@redhat.com>
Thu, 1 Feb 2024 19:56:02 +0000 (14:56 -0500)
commit87d162383ed68c55311a55784f6b40e979945c00
tree4e69e6575ae5ad4f05f58516c3e8c6732baf6731
parentb14209715e659f6d3ca0f9eef9a4851e7bd6e373
libstdc++/pair: Factor out const-assignability helper for C++20

This is consistent with std::tuple's __const_assignable helper, and will
be useful for implementing the new pair::operator= overloads from P2165R4.

libstdc++-v3/ChangeLog:

* include/bits/stl_pair.h (pair::_S_const_assignable): Define,
factored out from ...
(pair::operator=): ... the constraints of the const overloads.

Reviewed-by: Jonathan Wakely <jwakely@redhat.com>
libstdc++-v3/include/bits/stl_pair.h