BloombergLP::bslmf::MovableRefUtil_Decay

forward declaration

Synopsis

Declared in <bslmf_movableref.h>

template<class t_TYPE>
struct MovableRefUtil_Decay
    : bsl::decay<t_TYPE>

Base Classes

NameDescription
bsl::decay<t_TYPE>Metafunction to return the variant of the specified parameter t_TYPE used for pass-by-reference, e.g., by applying array-to-pointer and function-to-pointer conversion.

Type Aliases

NameDescription
type This typedef is an alias to the decayed form of t_TYPE.

Derived Classes

NameDescription
Decay This struct template provides a metafunction that defines a nested type typedef that applies lvalue-to-rvalue, array-to-pointer, and function-to-pointer conversions that occur when an lvalue of type t_TYPE is used as an rvalue, and also removes const, volatile, and reference qualifiers from class types in order to model by-value argument passing. For the purpose of this type trait, MovableRef<T> is considered a (movable) reference-qualified T.