Export (0) Print
Expand All
Expand Minimize

has_trivial_copy_constructor Class

Tests if type has a trivial copy constructor.

template<class Ty>
    struct has_trivial_copy_constructor;

Ty

The type to query.

An instance of the type predicate holds true if the type Ty is a class that has only trivial copy constructors, otherwise it holds false.

A copy constructor for a class Ty is trivial if:

  • it is implicitly declared

  • the class Ty has no virtual functions

  • the class Ty has no virtual bases

  • all the direct bases of the class Ty have trivial copy constructors

  • the classes of all the non-static data members of class type have trivial copy constructors

  • the classes of all the non-static data members of type array of class have trivial copy constructors

Header: <type_traits>

Namespace: std

Community Additions

ADD
Show:
© 2014 Microsoft