gcc/libstdc++-v3/include
Jonathan Wakely 2b667beba6 libstdc++: Simplify detection idiom using concepts
Add a simpler definition of std::__detected_or using concepts.  This
also replaces the __detector::value_t member which should have been using
a reserved name.

Use __detected_or in pointer_traits.

libstdc++-v3/ChangeLog:

	* include/bits/alloc_traits.h (allocator_traits::is_always_equal):
	Only instantiate is_empty if needed.
	* include/bits/ptr_traits.h (__ptr_traits_impl::difference_type)
	(__ptr_traits_impl::rebind): Use __detected_or.
	* include/experimental/type_traits (is_same_v): Add a partial
	specialization instead of instantiating the std::is_same class
	template.
	(detected_t): Redefine in terms of detected_or_t.
	(is_detected, is_detected_v): Redefine in terms of detected_t.
	* include/std/type_traits [__cpp_concepts] (__detected_or): Add
	new definition using concepts.
	(__detector::value_t): Rename to __is_detected.
	* testsuite/17_intro/names.cc: Check value_t isn't used.
2022-09-24 15:18:11 +01:00
..
backward libstdc++: Add preprocessor conditions for freestanding [PR106953] 2022-09-16 21:47:19 +01:00
bits libstdc++: Simplify detection idiom using concepts 2022-09-24 15:18:11 +01:00
c Update copyright years. 2022-01-03 10:42:10 +01:00
c_compatibility libstdc++: Add _Exit to <stdlib.h> for freestanding 2022-09-21 08:44:21 +01:00
c_global libstdc++: Fix typo in <cstdlib> for freestanding 2022-09-20 13:21:36 +01:00
c_std libstdc++: Declare std::c8rtomb and std::mbrtoc8 if provided by the C library 2022-01-18 16:31:02 +00:00
debug libstdc++: Enable constexpr std::bitset for debug mode 2022-09-23 12:53:51 +01:00
decimal Update copyright years. 2022-01-03 10:42:10 +01:00
experimental libstdc++: Simplify detection idiom using concepts 2022-09-24 15:18:11 +01:00
ext libstdc++: Move allocator-related helpers to <bits/alloc_traits.h> 2022-09-16 21:35:43 +01:00
parallel Update copyright years. 2022-01-03 10:42:10 +01:00
precompiled libstdc++: Add new headers to <bits/stdc++.h> PCH 2022-04-14 11:02:43 +01:00
pstl libstdc++: Reduce header dependencies from PSTL headers [PR92546] 2022-03-18 10:16:36 +00:00
std libstdc++: Simplify detection idiom using concepts 2022-09-24 15:18:11 +01:00
tr1 libstdc++: Fix tr1::variate_generator::engine_value_type 2022-09-16 15:54:42 +01:00
tr2 Update copyright years. 2022-01-03 10:42:10 +01:00
Makefile.am libstdc++: Implement <experimental/scope> from LFTSv3 2022-08-05 14:57:31 +01:00
Makefile.in libstdc++: Implement <experimental/scope> from LFTSv3 2022-08-05 14:57:31 +01:00