| (since C++14) |
This implies that the class has no virtual functions or virtual base classes.
Scalar types and arrays of TriviallyCopyable
objects are TriviallyCopyable
as well, as well as the const-qualified (but not volatile-qualified) versions of such types.
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
CWG 1734 | C++14 | C++03 POD with deleted non-trivial assignment was not trivial | deleted ctors/operators allowed |
(C++11)
| checks if a type is trivially copyable (class template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/concept/TriviallyCopyable