move_if_noexcept overloads
Synopses
Declared in <bslmf_movableref.h>
Return a const‐qualified reference to the specified lvalue.
template<class t_TYPE>
static
t_TYPE const&
move_if_noexcept(t_TYPE& lvalue) noexcept
requires !bsl::is_nothrow_move_constructible<t_TYPE>::value &&
bsl::is_copy_constructible<t_TYPE>::value;
Return a movable reference to the specified lvalue.
template<class t_TYPE>
static
MovableRef<t_TYPE>
move_if_noexcept(t_TYPE& lvalue) noexcept
requires !bsl::is_copy_constructible<t_TYPE>::value ||
bsl::is_nothrow_move_constructible<t_TYPE>::value;
Return Value
-
a const‐qualified reference to
lvalue -
a movable reference to
lvalue
Parameters
Name |
Description |
lvalue |
object to which a const reference is returned |
Created with MrDocs