Skip to content
Snippets Groups Projects
Commit 87d16238 authored by Patrick Palka's avatar Patrick Palka
Browse files

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: default avatarJonathan Wakely <jwakely@redhat.com>
parent b1420971
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment