bsl::is_volatile

This struct template implements the is_volatile meta-function defined in the C++11 standard [meta.unary.cat]to determine if the (template parameter) t_TYPE is volatile-qualified. This struct derives from bsl::true_type if the t_TYPE is volatile-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_isvolatile.h>

template<class t_TYPE>
struct is_volatile
    : false_type

Base Classes

NameDescription
false_typeMetafunction representing the boolean constant false.

Specializations

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