C++ named requirements: TrivialType
From cppreference.com
Specifies that a type is a trivial type.
Note: the standard doesn't define a named requirement with this name. This is a type category defined by the core language. It is included here as a named requirement only for consistency.
Requirements
- TriviallyCopyable
- If the type is a class type or array thereof, the class has one or more eligible default constructors, all of which are trivial.
Notes
A default constructor is eligible if and only if it is non-deleted. |
(until C++20) |
See also
(C++11) |
checks if a type is trivial (class template) |