##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# C++ concepts: TriviallyCopyable

From cppreference.com
< cpp‎ | concept

### [edit] Requirements

- Trivial copy constructor
- Trivial move constructor
- Trivial copy assignment operator
- Trivial move assignment operator
- Trivial destructor
- No virtual functions or virtual base classes
- All (non-static) members and base classes are `TriviallyCopyable`

Scalar types and arrays of `TriviallyCopiable` objects are `TriviallyCopiable` as well, as well as the const-qualified (but not volatile-qualified) versions of such types.

### [edit] See also

is_trivially_copyable (C++11) | checks if a type is trivially copyable (class template) [edit]

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