libstdc++
Variable templates for type traits
Collaboration diagram for Variable templates for type traits:

Variables

template<typename _Tp >
constexpr bool std::has_unique_object_representations_v
 
template<typename _Tp >
constexpr bool std::is_aggregate_v
 
template<typename _Tp >
constexpr bool std::is_bounded_array_v
 
template<typename _Tp , typename _Up >
constexpr bool std::is_layout_compatible_v
 
template<typename _Base , typename _Derived >
constexpr bool std::is_pointer_interconvertible_base_of_v
 
template<typename _Tp >
constexpr bool std::is_unbounded_array_v
 
template<typename... _Bn>
constexpr bool std::conjunction_v
 
template<typename... _Bn>
constexpr bool std::disjunction_v
 
template<typename _Pp >
constexpr bool std::negation_v
 
template<typename _Tp >
constexpr bool std::is_void_v
 
template<typename _Tp >
constexpr bool std::is_null_pointer_v
 
template<typename _Tp >
constexpr bool std::is_integral_v
 
template<typename _Tp >
constexpr bool std::is_floating_point_v
 
template<typename _Tp >
constexpr bool std::is_array_v
 
template<typename _Tp >
constexpr bool std::is_pointer_v
 
template<typename _Tp >
constexpr bool std::is_lvalue_reference_v
 
template<typename _Tp >
constexpr bool std::is_rvalue_reference_v
 
template<typename _Tp >
constexpr bool std::is_member_object_pointer_v
 
template<typename _Tp >
constexpr bool std::is_member_function_pointer_v
 
template<typename _Tp >
constexpr bool std::is_enum_v
 
template<typename _Tp >
constexpr bool std::is_union_v
 
template<typename _Tp >
constexpr bool std::is_class_v
 
template<typename _Tp >
constexpr bool std::is_function_v
 
template<typename _Tp >
constexpr bool std::is_reference_v
 
template<typename _Tp >
constexpr bool std::is_arithmetic_v
 
template<typename _Tp >
constexpr bool std::is_fundamental_v
 
template<typename _Tp >
constexpr bool std::is_object_v
 
template<typename _Tp >
constexpr bool std::is_scalar_v
 
template<typename _Tp >
constexpr bool std::is_compound_v
 
template<typename _Tp >
constexpr bool std::is_member_pointer_v
 
template<typename _Tp >
constexpr bool std::is_const_v
 
template<typename _Tp >
constexpr bool std::is_volatile_v
 
template<typename _Tp >
constexpr bool std::is_trivial_v
 
template<typename _Tp >
constexpr bool std::is_trivially_copyable_v
 
template<typename _Tp >
constexpr bool std::is_standard_layout_v
 
template<typename _Tp >
constexpr bool std::is_pod_v
 
template<typename _Tp >
constexpr bool std::is_literal_type_v
 
template<typename _Tp >
constexpr bool std::is_empty_v
 
template<typename _Tp >
constexpr bool std::is_polymorphic_v
 
template<typename _Tp >
constexpr bool std::is_abstract_v
 
template<typename _Tp >
constexpr bool std::is_final_v
 
template<typename _Tp >
constexpr bool std::is_signed_v
 
template<typename _Tp >
constexpr bool std::is_unsigned_v
 
template<typename _Tp , typename... _Args>
constexpr bool std::is_constructible_v
 
template<typename _Tp >
constexpr bool std::is_default_constructible_v
 
template<typename _Tp >
constexpr bool std::is_copy_constructible_v
 
template<typename _Tp >
constexpr bool std::is_move_constructible_v
 
template<typename _Tp , typename _Up >
constexpr bool std::is_assignable_v
 
template<typename _Tp >
constexpr bool std::is_copy_assignable_v
 
template<typename _Tp >
constexpr bool std::is_move_assignable_v
 
template<typename _Tp >
constexpr bool std::is_destructible_v
 
template<typename _Tp , typename... _Args>
constexpr bool std::is_trivially_constructible_v
 
template<typename _Tp >
constexpr bool std::is_trivially_default_constructible_v
 
template<typename _Tp >
constexpr bool std::is_trivially_copy_constructible_v
 
template<typename _Tp >
constexpr bool std::is_trivially_move_constructible_v
 
template<typename _Tp , typename _Up >
constexpr bool std::is_trivially_assignable_v
 
template<typename _Tp >
constexpr bool std::is_trivially_copy_assignable_v
 
template<typename _Tp >
constexpr bool std::is_trivially_move_assignable_v
 
template<typename _Tp >
constexpr bool std::is_trivially_destructible_v
 
template<typename _Tp , typename... _Args>
constexpr bool std::is_nothrow_constructible_v
 
template<typename _Tp >
constexpr bool std::is_nothrow_default_constructible_v
 
template<typename _Tp >
constexpr bool std::is_nothrow_copy_constructible_v
 
template<typename _Tp >
constexpr bool std::is_nothrow_move_constructible_v
 
template<typename _Tp , typename _Up >
constexpr bool std::is_nothrow_assignable_v
 
template<typename _Tp >
constexpr bool std::is_nothrow_copy_assignable_v
 
template<typename _Tp >
constexpr bool std::is_nothrow_move_assignable_v
 
template<typename _Tp >
constexpr bool std::is_nothrow_destructible_v
 
template<typename _Tp >
constexpr bool std::has_virtual_destructor_v
 
template<typename _Tp >
constexpr size_t std::alignment_of_v
 
template<typename _Tp >
constexpr size_t std::rank_v
 
template<typename _Tp , unsigned _Idx = 0>
constexpr size_t std::extent_v
 
template<typename _Tp , typename _Up >
constexpr bool std::is_same_v
 
template<typename _Base , typename _Derived >
constexpr bool std::is_base_of_v
 
template<typename _From , typename _To >
constexpr bool std::is_convertible_v
 
template<typename _Fn , typename... _Args>
constexpr bool std::is_invocable_v
 
template<typename _Fn , typename... _Args>
constexpr bool std::is_nothrow_invocable_v
 
template<typename _Ret , typename _Fn , typename... _Args>
constexpr bool std::is_invocable_r_v
 
template<typename _Ret , typename _Fn , typename... _Args>
constexpr bool std::is_nothrow_invocable_r_v
 

Detailed Description

Each variable is_xxx_v<T> is a boolean constant with the same value as the value member of the corresponding type trait is_xxx<T>.

Since
C++17 unless noted otherwise.

Variable Documentation

◆ alignment_of_v

template<typename _Tp >
constexpr size_t std::alignment_of_v
inlineconstexpr

Definition at line 3270 of file type_traits.

◆ conjunction_v

template<typename... _Bn>
constexpr bool std::conjunction_v
inlineconstexpr

Definition at line 212 of file type_traits.

◆ disjunction_v

template<typename... _Bn>
constexpr bool std::disjunction_v
inlineconstexpr

Definition at line 215 of file type_traits.

◆ extent_v

template<typename _Tp , unsigned _Idx = 0>
constexpr size_t std::extent_v
inlineconstexpr

Definition at line 3274 of file type_traits.

◆ has_unique_object_representations_v

template<typename _Tp >
constexpr bool std::has_unique_object_representations_v
inlineconstexpr

Definition at line 3315 of file type_traits.

◆ has_virtual_destructor_v

template<typename _Tp >
constexpr bool std::has_virtual_destructor_v
inlineconstexpr

Definition at line 3267 of file type_traits.

◆ is_abstract_v

template<typename _Tp >
constexpr bool std::is_abstract_v
inlineconstexpr

Definition at line 3191 of file type_traits.

◆ is_aggregate_v

template<typename _Tp >
constexpr bool std::is_aggregate_v
inlineconstexpr

Definition at line 3330 of file type_traits.

◆ is_arithmetic_v

template<typename _Tp >
constexpr bool std::is_arithmetic_v
inlineconstexpr

Definition at line 3155 of file type_traits.

◆ is_array_v

template<typename _Tp >
constexpr bool std::is_array_v
inlineconstexpr

Definition at line 3129 of file type_traits.

◆ is_assignable_v

template<typename _Tp , typename _Up >
constexpr bool std::is_assignable_v
inlineconstexpr

Definition at line 3211 of file type_traits.

◆ is_base_of_v

template<typename _Base , typename _Derived >
constexpr bool std::is_base_of_v
inlineconstexpr

Definition at line 3283 of file type_traits.

◆ is_bounded_array_v

template<typename _Tp >
constexpr bool std::is_bounded_array_v
inlineconstexpr
Since
C++20

Definition at line 3419 of file type_traits.

◆ is_class_v

template<typename _Tp >
constexpr bool std::is_class_v
inlineconstexpr

Definition at line 3149 of file type_traits.

◆ is_compound_v

template<typename _Tp >
constexpr bool std::is_compound_v
inlineconstexpr

Definition at line 3163 of file type_traits.

◆ is_const_v

template<typename _Tp >
constexpr bool std::is_const_v
inlineconstexpr

Definition at line 3167 of file type_traits.

◆ is_constructible_v

template<typename _Tp , typename... _Args>
constexpr bool std::is_constructible_v
inlineconstexpr

Definition at line 3199 of file type_traits.

◆ is_convertible_v

template<typename _From , typename _To >
constexpr bool std::is_convertible_v
inlineconstexpr

Definition at line 3285 of file type_traits.

◆ is_copy_assignable_v

template<typename _Tp >
constexpr bool std::is_copy_assignable_v
inlineconstexpr

Definition at line 3213 of file type_traits.

◆ is_copy_constructible_v

template<typename _Tp >
constexpr bool std::is_copy_constructible_v
inlineconstexpr

Definition at line 3205 of file type_traits.

◆ is_default_constructible_v

template<typename _Tp >
constexpr bool std::is_default_constructible_v
inlineconstexpr

Definition at line 3202 of file type_traits.

◆ is_destructible_v

template<typename _Tp >
constexpr bool std::is_destructible_v
inlineconstexpr

Definition at line 3217 of file type_traits.

◆ is_empty_v

template<typename _Tp >
constexpr bool std::is_empty_v
inlineconstexpr

Definition at line 3187 of file type_traits.

◆ is_enum_v

template<typename _Tp >
constexpr bool std::is_enum_v
inlineconstexpr

Definition at line 3145 of file type_traits.

◆ is_final_v

template<typename _Tp >
constexpr bool std::is_final_v
inlineconstexpr

Definition at line 3193 of file type_traits.

◆ is_floating_point_v

template<typename _Tp >
constexpr bool std::is_floating_point_v
inlineconstexpr

Definition at line 3127 of file type_traits.

◆ is_function_v

template<typename _Tp >
constexpr bool std::is_function_v
inlineconstexpr

Definition at line 3151 of file type_traits.

◆ is_fundamental_v

template<typename _Tp >
constexpr bool std::is_fundamental_v
inlineconstexpr

Definition at line 3157 of file type_traits.

◆ is_integral_v

template<typename _Tp >
constexpr bool std::is_integral_v
inlineconstexpr

Definition at line 3125 of file type_traits.

◆ is_invocable_r_v

template<typename _Ret , typename _Fn , typename... _Args>
constexpr bool std::is_invocable_r_v
inlineconstexpr

Definition at line 3292 of file type_traits.

◆ is_invocable_v

template<typename _Fn , typename... _Args>
constexpr bool std::is_invocable_v
inlineconstexpr

Definition at line 3287 of file type_traits.

◆ is_layout_compatible_v

template<typename _Tp , typename _Up >
constexpr bool std::is_layout_compatible_v
constexpr
Since
C++20

Definition at line 3439 of file type_traits.

◆ is_literal_type_v

template<typename _Tp >
constexpr bool std::is_literal_type_v
inlineconstexpr

Definition at line 3184 of file type_traits.

◆ is_lvalue_reference_v

template<typename _Tp >
constexpr bool std::is_lvalue_reference_v
inlineconstexpr

Definition at line 3133 of file type_traits.

◆ is_member_function_pointer_v

template<typename _Tp >
constexpr bool std::is_member_function_pointer_v
inlineconstexpr

Definition at line 3142 of file type_traits.

◆ is_member_object_pointer_v

template<typename _Tp >
constexpr bool std::is_member_object_pointer_v
inlineconstexpr

Definition at line 3139 of file type_traits.

◆ is_member_pointer_v

template<typename _Tp >
constexpr bool std::is_member_pointer_v
inlineconstexpr

Definition at line 3165 of file type_traits.

◆ is_move_assignable_v

template<typename _Tp >
constexpr bool std::is_move_assignable_v
inlineconstexpr

Definition at line 3215 of file type_traits.

◆ is_move_constructible_v

template<typename _Tp >
constexpr bool std::is_move_constructible_v
inlineconstexpr

Definition at line 3208 of file type_traits.

◆ is_nothrow_assignable_v

template<typename _Tp , typename _Up >
constexpr bool std::is_nothrow_assignable_v
inlineconstexpr

Definition at line 3255 of file type_traits.

◆ is_nothrow_constructible_v

template<typename _Tp , typename... _Args>
constexpr bool std::is_nothrow_constructible_v
inlineconstexpr

Definition at line 3243 of file type_traits.

◆ is_nothrow_copy_assignable_v

template<typename _Tp >
constexpr bool std::is_nothrow_copy_assignable_v
inlineconstexpr

Definition at line 3258 of file type_traits.

◆ is_nothrow_copy_constructible_v

template<typename _Tp >
constexpr bool std::is_nothrow_copy_constructible_v
inlineconstexpr

Definition at line 3249 of file type_traits.

◆ is_nothrow_default_constructible_v

template<typename _Tp >
constexpr bool std::is_nothrow_default_constructible_v
inlineconstexpr

Definition at line 3246 of file type_traits.

◆ is_nothrow_destructible_v

template<typename _Tp >
constexpr bool std::is_nothrow_destructible_v
inlineconstexpr

Definition at line 3264 of file type_traits.

◆ is_nothrow_invocable_r_v

template<typename _Ret , typename _Fn , typename... _Args>
constexpr bool std::is_nothrow_invocable_r_v
inlineconstexpr

Definition at line 3295 of file type_traits.

◆ is_nothrow_invocable_v

template<typename _Fn , typename... _Args>
constexpr bool std::is_nothrow_invocable_v
inlineconstexpr

Definition at line 3289 of file type_traits.

◆ is_nothrow_move_assignable_v

template<typename _Tp >
constexpr bool std::is_nothrow_move_assignable_v
inlineconstexpr

Definition at line 3261 of file type_traits.

◆ is_nothrow_move_constructible_v

template<typename _Tp >
constexpr bool std::is_nothrow_move_constructible_v
inlineconstexpr

Definition at line 3252 of file type_traits.

◆ is_null_pointer_v

template<typename _Tp >
constexpr bool std::is_null_pointer_v
inlineconstexpr

Definition at line 3123 of file type_traits.

◆ is_object_v

template<typename _Tp >
constexpr bool std::is_object_v
inlineconstexpr

Definition at line 3159 of file type_traits.

◆ is_pod_v

template<typename _Tp >
constexpr bool std::is_pod_v
inlineconstexpr

Definition at line 3181 of file type_traits.

◆ is_pointer_interconvertible_base_of_v

template<typename _Base , typename _Derived >
constexpr bool std::is_pointer_interconvertible_base_of_v
constexpr
Since
C++20

Definition at line 3464 of file type_traits.

◆ is_pointer_v

template<typename _Tp >
constexpr bool std::is_pointer_v
inlineconstexpr

Definition at line 3131 of file type_traits.

◆ is_polymorphic_v

template<typename _Tp >
constexpr bool std::is_polymorphic_v
inlineconstexpr

Definition at line 3189 of file type_traits.

◆ is_reference_v

template<typename _Tp >
constexpr bool std::is_reference_v
inlineconstexpr

Definition at line 3153 of file type_traits.

◆ is_rvalue_reference_v

template<typename _Tp >
constexpr bool std::is_rvalue_reference_v
inlineconstexpr

Definition at line 3136 of file type_traits.

◆ is_same_v

template<typename _Tp , typename _Up >
constexpr bool std::is_same_v
inlineconstexpr

Definition at line 3280 of file type_traits.

◆ is_scalar_v

template<typename _Tp >
constexpr bool std::is_scalar_v
inlineconstexpr

Definition at line 3161 of file type_traits.

◆ is_signed_v

template<typename _Tp >
constexpr bool std::is_signed_v
inlineconstexpr

Definition at line 3195 of file type_traits.

◆ is_standard_layout_v

template<typename _Tp >
constexpr bool std::is_standard_layout_v
inlineconstexpr

Definition at line 3176 of file type_traits.

◆ is_trivial_v

template<typename _Tp >
constexpr bool std::is_trivial_v
inlineconstexpr

Definition at line 3171 of file type_traits.

◆ is_trivially_assignable_v

template<typename _Tp , typename _Up >
constexpr bool std::is_trivially_assignable_v
inlineconstexpr

Definition at line 3231 of file type_traits.

◆ is_trivially_constructible_v

template<typename _Tp , typename... _Args>
constexpr bool std::is_trivially_constructible_v
inlineconstexpr

Definition at line 3219 of file type_traits.

◆ is_trivially_copy_assignable_v

template<typename _Tp >
constexpr bool std::is_trivially_copy_assignable_v
inlineconstexpr

Definition at line 3234 of file type_traits.

◆ is_trivially_copy_constructible_v

template<typename _Tp >
constexpr bool std::is_trivially_copy_constructible_v
inlineconstexpr

Definition at line 3225 of file type_traits.

◆ is_trivially_copyable_v

template<typename _Tp >
constexpr bool std::is_trivially_copyable_v
inlineconstexpr

Definition at line 3173 of file type_traits.

◆ is_trivially_default_constructible_v

template<typename _Tp >
constexpr bool std::is_trivially_default_constructible_v
inlineconstexpr

Definition at line 3222 of file type_traits.

◆ is_trivially_destructible_v

template<typename _Tp >
constexpr bool std::is_trivially_destructible_v
inlineconstexpr

Definition at line 3240 of file type_traits.

◆ is_trivially_move_assignable_v

template<typename _Tp >
constexpr bool std::is_trivially_move_assignable_v
inlineconstexpr

Definition at line 3237 of file type_traits.

◆ is_trivially_move_constructible_v

template<typename _Tp >
constexpr bool std::is_trivially_move_constructible_v
inlineconstexpr

Definition at line 3228 of file type_traits.

◆ is_unbounded_array_v

template<typename _Tp >
constexpr bool std::is_unbounded_array_v
inlineconstexpr
Since
C++20

Definition at line 3425 of file type_traits.

◆ is_union_v

template<typename _Tp >
constexpr bool std::is_union_v
inlineconstexpr

Definition at line 3147 of file type_traits.

◆ is_unsigned_v

template<typename _Tp >
constexpr bool std::is_unsigned_v
inlineconstexpr

Definition at line 3197 of file type_traits.

◆ is_void_v

template<typename _Tp >
constexpr bool std::is_void_v
inlineconstexpr

Definition at line 3121 of file type_traits.

◆ is_volatile_v

template<typename _Tp >
constexpr bool std::is_volatile_v
inlineconstexpr

Definition at line 3169 of file type_traits.

◆ negation_v

template<typename _Pp >
constexpr bool std::negation_v
inlineconstexpr

Definition at line 218 of file type_traits.

◆ rank_v

template<typename _Tp >
constexpr size_t std::rank_v
inlineconstexpr

Definition at line 3272 of file type_traits.