std::experimental::ranges::identity (3) - Linux Manuals
std::experimental::ranges::identity: std::experimental::ranges::identity
Command to display std::experimental::ranges::identity
manual in Linux: $ man 3 std::experimental::ranges::identity
NAME
std::experimental::ranges::identity - std::experimental::ranges::identity
Synopsis
Defined in header <experimental/ranges/functional>
struct identity; (ranges TS)
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.
Member types
Member type Definition
is_transparent /* unspecified */
Member functions
returns the argument unchanged
operator() (public member function)
std::experimental::ranges::identity::operator()
template< class T>
constexpr T&& operator()( T&& t ) const noexcept;
Returns std::forward<T>(t).
Parameters
t - argument to return
Return value
std::forward<T>(t).
Notes
The member type is_transparent indicates to the caller that this function object is a transparent function object: it accepts arguments of arbitrary types and uses perfect forwarding, which avoids unnecessary copying and conversion when the function object is used in heterogeneous context, or with rvalue arguments. In particular, template functions such as std::set::find and std::set::lower_bound make use of this member type on their Compare types.
Example
This section is incomplete
Reason: no example
Pages related to std::experimental::ranges::identity
- std::experimental::ranges::indirect_result_of (3) - std::experimental::ranges::indirect_result_of
- std::experimental::ranges::input_iterator_tag, (3) - std::experimental::ranges::input_iterator_tag,
- std::experimental::ranges::invoke (3) - std::experimental::ranges::invoke
- std::experimental::ranges::is_permutation (3) - std::experimental::ranges::is_permutation
- std::experimental::ranges::is_swappable_with,std::experimental::ranges::is_swappable, (3) - std::experimental::ranges::is_swappable_with,std::experimental::ranges::is_swappable,
- std::experimental::ranges::iterator_category (3) - std::experimental::ranges::iterator_category
- std::experimental::ranges::iterator_t,std::experimental::ranges::sentinel_t (3) - std::experimental::ranges::iterator_t,std::experimental::ranges::sentinel_t
- std::experimental::ranges::Assignable (3) - std::experimental::ranges::Assignable
- std::experimental::ranges::BidirectionalIterator (3) - std::experimental::ranges::BidirectionalIterator
- std::experimental::ranges::BidirectionalRange (3) - std::experimental::ranges::BidirectionalRange
- std::experimental::ranges::Boolean (3) - std::experimental::ranges::Boolean
- std::experimental::ranges::BoundedRange (3) - std::experimental::ranges::BoundedRange
- std::experimental::ranges::Common (3) - std::experimental::ranges::Common
- std::experimental::ranges::CommonReference (3) - std::experimental::ranges::CommonReference
- std::experimental::ranges::Constructible (3) - std::experimental::ranges::Constructible
- std::experimental::ranges::ConvertibleTo (3) - std::experimental::ranges::ConvertibleTo
- std::experimental::ranges::CopyConstructible (3) - std::experimental::ranges::CopyConstructible
- std::experimental::ranges::Copyable (3) - std::experimental::ranges::Copyable
- std::experimental::ranges::DefaultConstructible (3) - std::experimental::ranges::DefaultConstructible
- std::experimental::ranges::DerivedFrom (3) - std::experimental::ranges::DerivedFrom
- std::experimental::ranges::Destructible (3) - std::experimental::ranges::Destructible
- std::experimental::ranges::EqualityComparable, (3) - std::experimental::ranges::EqualityComparable,
- std::experimental::ranges::EqualityComparable,std::experimental::ranges::EqualityComparableWith (3) - std::experimental::ranges::EqualityComparable,std::experimental::ranges::EqualityComparableWith
- std::experimental::ranges::ForwardIterator (3) - std::experimental::ranges::ForwardIterator
- std::experimental::ranges::ForwardRange (3) - std::experimental::ranges::ForwardRange
- std::experimental::ranges::Incrementable (3) - std::experimental::ranges::Incrementable
- std::experimental::ranges::IndirectRelation (3) - std::experimental::ranges::IndirectRelation
- std::experimental::ranges::IndirectStrictWeakOrder (3) - std::experimental::ranges::IndirectStrictWeakOrder
- std::experimental::ranges::IndirectUnaryInvocable, (3) - std::experimental::ranges::IndirectUnaryInvocable,
- std::experimental::ranges::IndirectUnaryInvocable,std::experimental::ranges::IndirectRegularUnaryInvocable (3) - std::experimental::ranges::IndirectUnaryInvocable,std::experimental::ranges::IndirectRegularUnaryInvocable
- std::experimental::ranges::IndirectUnaryPredicate (3) - std::experimental::ranges::IndirectUnaryPredicate