cpp/experimental/ranges/functional/identity

is a function object type whose returns its argument unchanged. It is used as the default projection for all Ranges TS algorithms.

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

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

Return value
.

}}