BloombergLP::bslmf::IsTriviallyCopyable_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 copyable trait. If the flag t_K_INTRINSIC is true then the compiler has already determined that t_TYPE is trivially copyable without user intervention, and the check for nested traits can be optimized away.

Synopsis

Declared in <bslmf_istriviallycopyable.h>

template<
    class t_TYPE,
    bool t_K_INTRINSIC = false>
struct IsTriviallyCopyable_DetectTrait
    : DetectNestedTrait<t_TYPE, is_trivially_copyable>::type

Base Classes

NameDescription
DetectNestedTrait<t_TYPE, is_trivially_copyable>::type

Specializations

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