std::is_reflection
From cppreference.com
| Defined in header <type_traits>
|
||
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
| T | - | a type to check |
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
value [static] |
true if T is the type std::meta::info (possibly cv-qualified), false otherwise (public static member constant) |
Member functions
operator bool |
converts the object to bool, returns value (public member function) |
operator() (C++14) |
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
| This section is incomplete Reason: no example |
See also
(C++11) |
checks if a type is void (class template) |
(C++11) |
checks if a type is an array type (class template) |
(C++11) |
checks if a type is a pointer type (class template) |
(C++11) |
checks if a type is an enumeration type (class template) |
(C++11) |
checks if a type is a union type (class template) |
(C++11) |
checks if a type is a non-union class type (class template) |
(C++11) |
checks if a type is a function type (class template) |
(C++11) |
checks if a type is an object type (class template) |