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;

Return Value

t forwarded as t_TYPE&&

Parameters

Name

Description

t

argument to forward as a reference

Created with MrDocs