is_trivially_copy_constructible Class
Tests if the type has a trivial copy constructor.
Syntax
template <class T>
struct is_trivially_copy_constructible;
Parameters
T
The type to query.
Remarks
An instance of the type predicate holds true if the type T is a class that has a trivial copy constructor, otherwise it holds false.
A copy constructor for a class T is trivial if it is implicitly declared, the class T has no virtual functions or virtual bases, all the direct bases of class T have trivial copy constructors, the classes of all the non-static data members of class type have trivial copy constructors, and the classes of all the non-static data members of type array of class have trivial copy constructors.
Requirements
Header: <type_traits>
Namespace: std
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for