Return a movable reference to the specified lvalue. This function is selected by overload resolution if the move constructor for t_TYPE is nothrow‐move‐constructible. Constructing a t_TYPE object from the result will result in the (safe) move constructor being invoked. Note that that the bsl::is_nothrow_move_constructible trait can be customized in C++03 mode to indicate that a type is nothrow‐move‐constructible.
Synopsis
Declared in <bslmf_movableref.h>
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;
Created with MrDocs