C++ named requirements: UnaryTypeTrait (since C++11)
From cppreference.com
A UnaryTypeTrait is a class template that describes a property of its template type parameter with an std::integral_constant (typically std::bool_constant) specialization.
Requirements
- DefaultConstructible and CopyConstructible.
- Takes one template type parameter (additional template parameters are optional and allowed).
- Publicly and unambiguously derived from a specialization of std::integral_constant, known as its base characteristic.
- The member names of the base characteristic are not hidden and are unambiguously available.
Standard library
The following type traits all satisfy UnaryTypeTrait:
- Primary type categories
- Composite type categories
- Type properties
- Supported operations
- Property queries
The following standard library class templates also satisfy UnaryTypeTrait.
