TriviallyCopyable

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 TriviallyCopyable objects are TriviallyCopyable as well, as well as the const-qualified (but not volatile-qualified) versions of such types.

See also

checks if a type is trivially copyable
(class template)
doc_CPP
2016-10-11 10:08:45
Comments
Leave a Comment

Please login to continue.