forwardAsReference overloads

Synopses

Declared in <bslmf_util.h>

Correctly forward the specified t argument as a reference type based on the current compilation environment.

template<class t_TYPE>
constexpr
static
t_TYPE&&
forwardAsReference(bsl::remove_reference<t_TYPE>::type& t) noexcept;

Same as the preceding overload, for rvalue references.

template<class t_TYPE>
constexpr
static
t_TYPE&&
forwardAsReference(bsl::remove_reference<t_TYPE>::type&& t) noexcept;

Created with MrDocs