has_nothrow_default_constructor Class

Tests if type doesn't throw on default construction.

template<class Ty>
    struct has_nothrow_default_constructor;

Parameters

  • Ty
    The type to query.

Remarks

An instance of the type predicate holds true if the type Ty has a nothrow default constructor, otherwise it holds false.

Requirements

Header: <type_traits>

Namespace: std

See Also

Reference

<type_traits>

Other Resources

<type_traits> Members