bsl::is_const

This struct template implements the is_const meta-function defined in the C++11 standard [meta.unary.cat]to determine if the (template parameter) t_TYPE is const-qualified. This struct derives from bsl::true_type if the t_TYPE is const-qualified, and bsl::false_type otherwise. Note that this generic default template derives from bsl::false_type. A template specialization is provided (below) that derives from bsl::true_type.

Synopsis

Declared in <bslmf_isconst.h>

template<class t_TYPE>
struct is_const
    : false_type

Base Classes

NameDescription
false_typeMetafunction representing the boolean constant false.

Specializations

NameDescription
is_const<t_TYPE const> This partial specialization of is_const, for when the (template parameter) t_TYPE is const-qualified, derives from bsl::true_type.