bsl::is_reference

This struct template implements the is_reference meta-function defined in the C++11 standard [meta.unary.comp]to determine if the (template parameter) t_TYPE is a (lvalue or rvalue) reference type.

Synopsis

Declared in <bslmf_isreference.h>

template<class t_TYPE>
struct is_reference
    : false_type

Description

This struct derives from bsl::false_type with specializations to follow for lvalue and rvalue references.

Base Classes

NameDescription
false_typeMetafunction representing the boolean constant false.

Specializations

NameDescription
is_reference<t_TYPE&> This struct template implements the is_reference meta-function defined in the C++11 standard [meta.unary.comp]to determine if the (template parameter) t_TYPE is a (lvalue or rvalue) reference type.
is_reference<t_TYPE&&> This struct template implements the is_reference meta-function defined in the C++11 standard [meta.unary.comp]to determine if the (template parameter) t_TYPE is a (lvalue or rvalue) reference type.