[func.identity] (original) (raw)

20 General utilities library [utilities]

20.14 Function objects [function.objects]

20.14.11 Class identity [func.identity]

🔗

struct identity { template<class T> constexpr T&& operator()(T&& t) const noexcept;using is_transparent = unspecified;};template<class T> constexpr T&& operator()(T&& t) const noexcept;

1

#

Effects:Equivalent to: return std​::​forward<T>(t);