Quick Links:

bal | bbl | bdl | bsl

bsl::is_trivially_default_constructible< t_TYPE > Struct Template Reference

#include <bslmf_istriviallydefaultconstructible.h>


Detailed Description

template<class t_TYPE>
struct bsl::is_trivially_default_constructible< t_TYPE >

This struct template implements a meta-function to determine whether the (template parameter) t_TYPE is trivially default-constructible. This struct derives from bsl::true_type if the t_TYPE is trivially default-constructible, and from bsl::false_type otherwise. This meta-function has the same syntax as the is_trivially_default_constructible meta-function defined in the C++11 standard [meta.unary.prop]; however, this meta-function can automatically determine the value for the following types only: reference types, fundamental types, enums, pointers to members, and types declared to have the bsl::is_trivially_default_constructible trait using the BSLMF_NESTED_TRAIT_DECLARATION macro (and the value for other types defaults to false). To support other trivially default-constructible types, this template must be specialized to inherit from bsl::true_type for them.

See Component bslmf_istriviallydefaultconstructible


The documentation for this struct was generated from the following file: