std::experi...es::identity(3)
π std::experimental::ranges::identity π
okay bestie, this page comes from the C++ Standard Libary manual (yes, βLibaryβ is literally how the header spells it β iconic typo, no notes), and the page label is std::experi...es::identity(3). We are talking about std::experimental::ranges::identity, the ranges TS girlie. Itβs short. Itβs powerful. Letβs go π«Ά
πΈ 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 functions π
operator()β returns the argument unchanged (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).
π Example π
This section is incomplete Reason: no example
π Category: π
- Todo no example
mwah π β source http://cppreference.com, version/date 2024.06.10, footer label std::experi...es::identity(3). Thatβs the whole vibe check, bestie π§π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms