gcc/libstdc++-v3/testsuite/20_util/reference_wrapper
Jonathan Wakely 0d58450659
libstdc++: Add std::reference_wrapper comparison operators for C++26
This C++26 change was just approved in Tokyo, in P2944R3. It adds
operator== and operator<=> overloads to std::reference_wrapper.

The operator<=> overloads in the paper cause compilation errors for any
type without <=> so they're implemented here with deduced return types
and constrained by a requires clause.

libstdc++-v3/ChangeLog:

	* include/bits/refwrap.h (reference_wrapper): Add comparison
	operators as proposed by P2944R3.
	* include/bits/version.def (reference_wrapper): Define.
	* include/bits/version.h: Regenerate.
	* include/std/functional: Enable feature test macro.
	* testsuite/20_util/reference_wrapper/compare.cc: New test.
2024-04-15 19:26:09 +01:00
..
24803.cc
41792.cc
80504.cc
83427.cc
compare.cc
constexpr.cc
deduction.cc
incomplete.cc
invoke-2.cc
invoke-3.cc
invoke-noexcept.cc
invoke.cc
lwg2993.cc
ref_neg.cc
requirements.cc
result_type.cc
typedefs-2.cc
typedefs-3.cc
typedefs.cc