BloombergLP::bslmf::Util::moveIfSupported

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;