Category
Type Trait Functions
Syntax
bool __has_trivial_copy_constructor ( typename T )
Returns true if and only if T has a trivial default constructor.
Error if T is an incomplete type.
False (but well-formed) if a class type does not have a default constructor
The definition (from Section 20.4.4.3 of the Working Draft) notes has a type T has a trivial copy constructor if it is in the list::
A copy constructor for class X is trivial if:
Ox interaction false if the default constructor is defined as deleted.
Ox interactionwith default function definitions.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|