C++ concepts: TrivialType - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# C++ concepts: TrivialType

From cppreference.com
< cpp‎ | concept

Specifies that a type is trivial type.

Note, that the standard doesn't define a named requirement or concept with this name. This is a type category defined by the core language. It is included here as concept only for consistency.

### [edit] Requirements

- `TriviallyCopyable`
- Has one or more default constructors, all of which are either trivial or deleted, and at least one of which is not deleted.

### [edit] See also

is_trivial (C++11) | checks if a type is trivial (class template) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/concept/TrivialType&oldid=86099"