A UnaryTypeTrait is a class template that describes a property of its template type parameter with an integral_constant
(typically bool_constant
) specialization.
integral_constant
, known as its base characteristic The following type properties all satisfy UnaryTypeTrait.
The following standard library class templates also satisfy UnaryTypeTrait.
(C++11) | compile-time constant of specified type with specified value (class template) |
(C++17) | logical NOT metafunction (class template) |
(C++11) | obtains the size of tuple at compile time (class template specialization) |
(C++11) | obtains the size of an array (class template specialization) |
(C++11) | obtains the size of a pair (class template specialization) |
(C++17) | obtains the size of the variant's list of alternatives at compile time (class template) (variable template) |
(C++11) | indicates that an object is std::bind expression or can be used as one (class template) |
(C++11) | indicates that an object is a standard placeholder or can be used as one (class template) |
(C++17) | test whether a class represents an execution policy (class template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/named_req/UnaryTypeTrait