BloombergLP::bslmf::MovableRefUtil::AddMovableReference

This struct template provides a metafunction that defines a nested type typedef that, if t_TYPE is not a reference type, is MovableRef<t_TYPE>. Otherwise, if t_TYPE is a specialization of MovableRef, type is the same as t_TYPE. Otherwise, type is t_TYPE&. This transformation reflects the semantics of reference collapsing in section [dec.ref]of the standard.

Synopsis

Declared in <bslmf_movableref.h>

template<class t_TYPE>
struct AddMovableReference
    : MovableRefUtil_AddMovableReference<t_TYPE>

Base Classes

NameDescription
MovableRefUtil_AddMovableReference<t_TYPE>forward declaration

Type Aliases

NameDescription
type This typedef is an alias to the return type of this meta-function.