cpp/utility/functional/identity

is a function object type whose returns its argument unchanged.

Member functions
{{member|{{small|std::identity::}}operator|2= {{ddcl|1= template< class T> constexpr T&& operator( T&& t ) const noexcept; }}

Returns {{c|std::forward(t)}}.

Return value
. }}