isTriviallyCopyConstructable

Checks if a type is trivially constructable, that is no user-defined copy constructor exists - postblit doesn't count.

Members

Aliases

U
alias U = from.bolts.traits.symbols.TypesOf!T[0]
Undocumented in source.

Manifest constants

isTriviallyCopyConstructable
enum isTriviallyCopyConstructable;
Undocumented in source.

Examples

mixin copyConstructableKinds;

static assert( isTriviallyCopyConstructable!KindPOD);
static assert(!isTriviallyCopyConstructable!KindHasCopyContrustor);
static assert(!isTriviallyCopyConstructable!KindHasPostBlit);
static assert( isTriviallyCopyConstructable!KindContainsPOD);
static assert(!isTriviallyCopyConstructable!KindContainsTypeWithNonTrivialCopyConstructor);
static assert(!isTriviallyCopyConstructable!KindContainsTypeWithPostBlit);

Meta