__has_nothrow_default_constructor

From RAD Studio
Jump to: navigation, search

Go Up to Type Trait Functions (C++11) Index


Category

Type Trait Functions

Syntax

bool __has_nothrow_default_constructor (typename T )

Returns true if and only if T can prove T has a default constructor it cannot throw.

Error if T is an incomplete type.

True if __has_trivial_default_constructor(T).

True if default constructor has an empty exception specification.

False (but well-formed) if a class type does not have a default constructor.

False if T is a reference type.

Ox interaction false if the default constructor is defined as deleted.

See Also