Files
cppdraft_translate/cppdraft/func/identity.md
2025-10-25 03:02:53 +03:00

612 B
Raw Blame History

[func.identity]

22 General utilities library [utilities]

22.10 Function objects [function.objects]

22.10.12 Class identity [func.identity]

🔗

`struct identity { template constexpr T&& operator()(T&& t) const noexcept;

using is_transparent = unspecified; };

template constexpr T&& operator()(T&& t) const noexcept; `

1

#

Effects: Equivalent to: return std::forward(t);