BloombergLP::bslmf::IsTriviallyDefaultConstructible_DetectTrait

This struct template implements a meta-function to determine whether the (non-cv-qualified) (template parameter) t_TYPE has been explicitly tagged with the trivially default constructible trait. If the flag t_K_INTRINSIC is true then the compiler has already determined that t_TYPE is trivially default constructible without user intervention, and the check for nested traits can be optimized away.

Synopsis

Declared in <bslmf_istriviallydefaultconstructible.h>

template<
    class t_TYPE,
    bool t_K_INTRINSIC = false>
struct IsTriviallyDefaultConstructible_DetectTrait
    : DetectNestedTrait<t_TYPE, is_trivially_default_constructible>::type

Base Classes

NameDescription
DetectNestedTrait<t_TYPE, is_trivially_default_constructible>::type

Specializations

NameDescription
IsTriviallyDefaultConstructible_DetectTrait<t_TYPE, true> This struct template implements a meta-function to determine whether the (non-cv-qualified) (template parameter) t_TYPE is trivially default constructible.