Return std::move(t) if t_TYPE is move constructible, and a reference to t otherwise.
Synopsis
Declared in <bslmf_util.h>
template<class t_TYPE>
constexpr
static
bsl::remove_reference<t_T>::type&&
moveIfSupported(t_TYPE&& t) noexcept;
Return Value
an rvalue reference to t
Parameters
Name |
Description |
t |
object to move if rvalue references are supported |
Created with MrDocs