std::experimental::ranges::identity - cppreference.com (original) (raw)
ranges::identity
is a function object type whose operator() returns its argument unchanged. It is used as the default projection for all Ranges TS algorithms.
Contents
[edit] Nested types
[edit] Member functions
| | returns the argument unchanged (public member function) | | ---------------------------------------------------------- |
std::experimental::ranges:🆔:operator()
| template< class T > constexpr T&& operator()( T&& t ) const noexcept; | | | | ---------------------------------------------------------------------- | | |
Returns std::forward<T>(t).
Parameters
Return value
std::forward<T>(t).