41#ifndef _GLIBCXX_EXPERIMENTAL_TYPE_TRAITS
42#define _GLIBCXX_EXPERIMENTAL_TYPE_TRAITS 1
44#pragma GCC system_header
46#if __cplusplus >= 201402L
51namespace std _GLIBCXX_VISIBILITY(default)
53_GLIBCXX_BEGIN_NAMESPACE_VERSION
57inline namespace fundamentals_v1
67#define __cpp_lib_experimental_type_trait_variable_templates 201402
70template <
typename _Tp>
71 constexpr bool is_void_v = is_void<_Tp>::value;
72template <
typename _Tp>
73 constexpr bool is_null_pointer_v = is_null_pointer<_Tp>::value;
74template <
typename _Tp>
75 constexpr bool is_integral_v = is_integral<_Tp>::value;
76template <
typename _Tp>
77 constexpr bool is_floating_point_v = is_floating_point<_Tp>::value;
78template <
typename _Tp>
79 constexpr bool is_array_v = is_array<_Tp>::value;
80template <
typename _Tp>
81 constexpr bool is_pointer_v = is_pointer<_Tp>::value;
82template <
typename _Tp>
83 constexpr bool is_lvalue_reference_v = is_lvalue_reference<_Tp>::value;
84template <
typename _Tp>
85 constexpr bool is_rvalue_reference_v = is_rvalue_reference<_Tp>::value;
86template <
typename _Tp>
87 constexpr bool is_member_object_pointer_v =
88 is_member_object_pointer<_Tp>::value;
89template <
typename _Tp>
90 constexpr bool is_member_function_pointer_v =
91 is_member_function_pointer<_Tp>::value;
92template <
typename _Tp>
93 constexpr bool is_enum_v = is_enum<_Tp>::value;
94template <
typename _Tp>
95 constexpr bool is_union_v = is_union<_Tp>::value;
96template <
typename _Tp>
97 constexpr bool is_class_v = is_class<_Tp>::value;
98template <
typename _Tp>
99 constexpr bool is_function_v = is_function<_Tp>::value;
102template <
typename _Tp>
103 constexpr bool is_reference_v = is_reference<_Tp>::value;
104template <
typename _Tp>
105 constexpr bool is_arithmetic_v = is_arithmetic<_Tp>::value;
106template <
typename _Tp>
107 constexpr bool is_fundamental_v = is_fundamental<_Tp>::value;
108template <
typename _Tp>
109 constexpr bool is_object_v = is_object<_Tp>::value;
110template <
typename _Tp>
111 constexpr bool is_scalar_v = is_scalar<_Tp>::value;
112template <
typename _Tp>
113 constexpr bool is_compound_v = is_compound<_Tp>::value;
114template <
typename _Tp>
115 constexpr bool is_member_pointer_v = is_member_pointer<_Tp>::value;
118template <
typename _Tp>
119 constexpr bool is_const_v = is_const<_Tp>::value;
120template <
typename _Tp>
121 constexpr bool is_volatile_v = is_volatile<_Tp>::value;
122template <
typename _Tp>
123 constexpr bool is_trivial_v = is_trivial<_Tp>::value;
124template <
typename _Tp>
125 constexpr bool is_trivially_copyable_v = is_trivially_copyable<_Tp>::value;
126template <
typename _Tp>
127 constexpr bool is_standard_layout_v = is_standard_layout<_Tp>::value;
128#pragma GCC diagnostic push
129#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
130template <
typename _Tp>
131 constexpr bool is_pod_v = is_pod<_Tp>::value;
132template <
typename _Tp>
133 constexpr bool is_literal_type_v = is_literal_type<_Tp>::value;
134#pragma GCC diagnostic pop
135template <
typename _Tp>
136 constexpr bool is_empty_v = is_empty<_Tp>::value;
137template <
typename _Tp>
138 constexpr bool is_polymorphic_v = is_polymorphic<_Tp>::value;
139template <
typename _Tp>
140 constexpr bool is_abstract_v = is_abstract<_Tp>::value;
141template <
typename _Tp>
142 constexpr bool is_final_v = is_final<_Tp>::value;
143template <
typename _Tp>
144 constexpr bool is_signed_v = is_signed<_Tp>::value;
145template <
typename _Tp>
146 constexpr bool is_unsigned_v = is_unsigned<_Tp>::value;
147template <
typename _Tp,
typename... _Args>
148 constexpr bool is_constructible_v = is_constructible<_Tp, _Args...>::value;
149template <
typename _Tp>
150 constexpr bool is_default_constructible_v =
151 is_default_constructible<_Tp>::value;
152template <
typename _Tp>
153 constexpr bool is_copy_constructible_v = is_copy_constructible<_Tp>::value;
154template <
typename _Tp>
155 constexpr bool is_move_constructible_v = is_move_constructible<_Tp>::value;
156template <
typename _Tp,
typename _Up>
157 constexpr bool is_assignable_v = is_assignable<_Tp, _Up>::value;
158template <
typename _Tp>
159 constexpr bool is_copy_assignable_v = is_copy_assignable<_Tp>::value;
160template <
typename _Tp>
161 constexpr bool is_move_assignable_v = is_move_assignable<_Tp>::value;
162template <
typename _Tp>
163 constexpr bool is_destructible_v = is_destructible<_Tp>::value;
164template <
typename _Tp,
typename... _Args>
165 constexpr bool is_trivially_constructible_v =
166 is_trivially_constructible<_Tp, _Args...>::value;
167template <
typename _Tp>
168 constexpr bool is_trivially_default_constructible_v =
169 is_trivially_default_constructible<_Tp>::value;
170template <
typename _Tp>
171 constexpr bool is_trivially_copy_constructible_v =
172 is_trivially_copy_constructible<_Tp>::value;
173template <
typename _Tp>
174 constexpr bool is_trivially_move_constructible_v =
175 is_trivially_move_constructible<_Tp>::value;
176template <
typename _Tp,
typename _Up>
177 constexpr bool is_trivially_assignable_v =
178 is_trivially_assignable<_Tp, _Up>::value;
179template <
typename _Tp>
180 constexpr bool is_trivially_copy_assignable_v =
181 is_trivially_copy_assignable<_Tp>::value;
182template <
typename _Tp>
183 constexpr bool is_trivially_move_assignable_v =
184 is_trivially_move_assignable<_Tp>::value;
185template <
typename _Tp>
186 constexpr bool is_trivially_destructible_v =
187 is_trivially_destructible<_Tp>::value;
188template <
typename _Tp,
typename... _Args>
189 constexpr bool is_nothrow_constructible_v =
190 is_nothrow_constructible<_Tp, _Args...>::value;
191template <
typename _Tp>
192 constexpr bool is_nothrow_default_constructible_v =
193 is_nothrow_default_constructible<_Tp>::value;
194template <
typename _Tp>
195 constexpr bool is_nothrow_copy_constructible_v =
196 is_nothrow_copy_constructible<_Tp>::value;
197template <
typename _Tp>
198 constexpr bool is_nothrow_move_constructible_v =
199 is_nothrow_move_constructible<_Tp>::value;
200template <
typename _Tp,
typename _Up>
201 constexpr bool is_nothrow_assignable_v =
202 is_nothrow_assignable<_Tp, _Up>::value;
203template <
typename _Tp>
204 constexpr bool is_nothrow_copy_assignable_v =
205 is_nothrow_copy_assignable<_Tp>::value;
206template <
typename _Tp>
207 constexpr bool is_nothrow_move_assignable_v =
208 is_nothrow_move_assignable<_Tp>::value;
209template <
typename _Tp>
210 constexpr bool is_nothrow_destructible_v =
211 is_nothrow_destructible<_Tp>::value;
212template <
typename _Tp>
213 constexpr bool has_virtual_destructor_v =
214 has_virtual_destructor<_Tp>::value;
217template <
typename _Tp>
218 constexpr size_t alignment_of_v = alignment_of<_Tp>::value;
219template <
typename _Tp>
220 constexpr size_t rank_v = rank<_Tp>::value;
221template <
typename _Tp,
unsigned _Idx = 0>
222 constexpr size_t extent_v = extent<_Tp, _Idx>::value;
225template <
typename _Tp,
typename _Up>
226 constexpr bool is_same_v =
false;
227template <
typename _Tp>
228 constexpr bool is_same_v<_Tp, _Tp> =
true;
229template <
typename _Base,
typename _Derived>
230 constexpr bool is_base_of_v = is_base_of<_Base, _Derived>::value;
231template <
typename _From,
typename _To>
232 constexpr bool is_convertible_v = is_convertible<_From, _To>::value;
242inline namespace fundamentals_v2
252#define __cpp_lib_experimental_detect 201505
257template<
typename...>
using void_t = void;
259#pragma GCC diagnostic push
260#pragma GCC diagnostic ignored "-Wctor-dtor-privacy"
262struct __nonesuchbase {};
263struct nonesuch :
private __nonesuchbase
265 ~nonesuch() =
delete;
266 nonesuch(nonesuch
const&) =
delete;
267 void operator=(nonesuch
const&) =
delete;
269#pragma GCC diagnostic pop
271template<
typename _Default,
template<
typename...>
class _Op,
typename... _Args>
274template<
typename _Default,
template<
typename...>
class _Op,
typename... _Args>
277template<
template<
typename...>
class _Op,
typename... _Args>
280template<
template<
typename...>
class _Op,
typename... _Args>
283template<
template<
typename...>
class _Op,
typename... _Args>
286template<
typename _Expected,
template<
typename...>
class _Op,
typename... _Args>
289template<
typename _Expected,
template<
typename...>
class _Op,
typename... _Args>
293template<
typename _To,
template<
typename...>
class _Op,
typename... _Args>
297template<
typename _To,
template<
typename...>
class _Op,
typename... _Args>
310#define __cpp_lib_experimental_logical_traits 201511
312template<
typename... _Bn>
317template<
typename... _Bn>
322template<
typename _Pp>
327template<
typename... _Bn>
328 constexpr bool conjunction_v
329 = conjunction<_Bn...>::value;
331template<
typename... _Bn>
332 constexpr bool disjunction_v
333 = disjunction<_Bn...>::value;
335template<
typename _Pp>
336 constexpr bool negation_v
337 = negation<_Pp>::value;
342_GLIBCXX_END_NAMESPACE_VERSION
constexpr bool is_detected_exact_v
A metafunction that always yields void, used for detecting valid types.
typename detected_or< void, _Op, _Args... >::__is_detected is_detected
A metafunction that always yields void, used for detecting valid types.
detected_or_t< nonesuch, _Op, _Args... > detected_t
A metafunction that always yields void, used for detecting valid types.
typename detected_or< _Default, _Op, _Args... >::type detected_or_t
A metafunction that always yields void, used for detecting valid types.
is_same< _Expected, detected_t< _Op, _Args... > > is_detected_exact
A metafunction that always yields void, used for detecting valid types.
std::__detected_or< _Default, _Op, _Args... > detected_or
A metafunction that always yields void, used for detecting valid types.
is_convertible< detected_t< _Op, _Args... >, _To > is_detected_convertible
A metafunction that always yields void, used for detecting valid types.
void void_t
A metafunction that always yields void, used for detecting valid types.
constexpr bool is_detected_convertible_v
A metafunction that always yields void, used for detecting valid types.
constexpr bool is_detected_v
A metafunction that always yields void, used for detecting valid types.
ISO C++ entities toplevel namespace is std.