BloombergLP::bslmf::IsReferenceWrapper

Metafunction for detecting reference wrappers.

Synopsis

Declared in <bslmf_isreferencewrapper.h>

template<class t_TYPE>
struct IsReferenceWrapper
    : bsl::false_type

Description

This struct template implements a boolean metafunction used to detect if the specified t_TYPE is a reference wrapper. Clients may specialize this struct template to inherit from bsl::true_type for t_TYPE types that are specializations of bsl::reference_wrapper. The behavior is undefined if any other specialization of this struct template is defined.

Base Classes

NameDescription
bsl::false_typeMetafunction representing the boolean constant false.

Specializations

NameDescription
IsReferenceWrapper<bsl::reference_wrapper<T>> This partial specialization of IsReferenceWrapper derives from bsl::true_type for when the (template parameter) type is a bsl::reference_wrapper.