#include <bslalg_nothrowmovableutil.h>
◆ unwrap() [1/5]
◆ unwrap() [2/5]
◆ unwrap() [3/5]
◆ unwrap() [4/5]
template<class TYPE >
static UnwrappedType< TYPE >::type & bslalg::NothrowMovableUtil::unwrap |
( |
TYPE & |
f | ) |
|
|
static |
Return a reference to the object wrapped in the specified f
object. If f
is not wrapped, simply return a reference to f
. Note that the overloads taking an lvalue argument prevent the overload taking an rvalue argument from treating the argument as a forwarding reference. The return type is chosen so both the value category and constness of the parameter are preserved even in the case of const rvalue references.
◆ unwrap() [5/5]
template<class TYPE >
static UnwrappedType< TYPE >::type const & bslalg::NothrowMovableUtil::unwrap |
( |
TYPE const & |
f | ) |
|
|
static |
◆ wrap() [1/4]
◆ wrap() [2/4]
◆ wrap() [3/4]
template<class TYPE >
static WrappedType< TYPE >::type bslalg::NothrowMovableUtil::wrap |
( |
TYPE & |
f | ) |
|
|
static |
Return a wrapped copy of the specified f
object. If f
is already wrapped, return a simple copy of f
without wrapping it again. Note that the overloads taking an lvalue argument prevent the overload taking an rvalue argument from treating the argument as a forwarding reference.
◆ wrap() [4/4]
template<class TYPE >
static WrappedType< TYPE >::type bslalg::NothrowMovableUtil::wrap |
( |
TYPE const & |
f | ) |
|
|
static |
The documentation for this struct was generated from the following file: