std::is_reflection - cppreference.com
From cppreference.com
template< class T > struct is_reflection; |
(since C++26) | |
std::is_reflection is a UnaryTypeTrait.
Checks whether T is the type std::meta::info.
Provides the member constant value that is equal to true, if T is the type std::meta::info, const std::meta::info, volatile std::meta::info, or const volatile std::meta::info.
Otherwise, value is equal to false.
If the program adds specializations for std::is_reflection or std::is_reflection_v, the behavior is undefined.
Template parameters
Helper variable template
template< class T > constexpr bool is_reflection_v = is_reflection<T>::value; |
(since C++26) | |
Inherited from std::integral_constant
Member constants
true if T is the type std::meta::info (possibly cv-qualified), false otherwise (public static member constant) |
Member functions
converts the object to bool, returns value (public member function) | |
returns value (public member function) |
Member types
| Type | Definition |
value_type
|
bool
|
type
|
std::integral_constant<bool, value>
|
Possible implementation
template<class T> struct is_reflection : std::is_same<std::meta::info, std::remove_cv_t<T>> {};
Example
See also
(C++11) |
checks if a type is void (class template) [edit] |
(C++11) |
checks if a type is an array type (class template) [edit] |
(C++11) |
checks if a type is a pointer type (class template) [edit] |
(C++11) |
checks if a type is an enumeration type (class template) [edit] |
(C++11) |
checks if a type is a union type (class template) [edit] |
(C++11) |
checks if a type is a non-union class type (class template) [edit] |
(C++11) |
checks if a type is a function type (class template) [edit] |
(C++11) |
checks if a type is an object type (class template) [edit] |