BloombergLP::bslmf::MovableRefUtil::move_if_noexcept

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;
» more...

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;
» more...

Return Value

  • a const-qualified reference to lvalue
  • a movable reference to lvalue

Parameters

NameDescription
lvalueobject to which a const reference is returned