BloombergLP::bslmf::MovableRefUtil

Utility functions for operating on MovableRef objects.

Synopsis

Declared in <bslmf_movableref.h>

struct MovableRefUtil;

Description

This struct provides a collection of utility functions operating on objects of type MovableRef<t_TYPE>. The primary use of these utilities is to create a consistent notation for using the C++03 MovableRef<t_TYPE> objects and the C++11 t_TYPE&& r-value references.

Types

NameDescription
AddLvalueReference Metafunction that adds an lvalue reference to t_TYPE.
AddMovableReference Metafunction that adds a movable reference to t_TYPE.
Decay Metafunction that applies decay conversions to t_TYPE.
IsLvalueReference Boolean metafunction that is true if t_TYPE is an lvalue reference.
IsMovableReference Boolean metafunction that is true if t_TYPE is a MovableRef.
IsReference Boolean metafunction that is true if t_TYPE is a reference type.
RemoveReference Metafunction that removes reference qualification from t_TYPE.

Static Member Functions

NameDescription
access Return an lvalue reference to the object referenced by the specified ref object.
move Return a movable reference to the object referred to by the specified reference.
move_if_noexcept move_if_noexcept overloads