Scroll to navigation

std::identity(3cxx) std::identity(3cxx)


std::identity - [func.identity] The identity function.


#include <functional>

Public Types

using is_transparent = __is_transparent

Public Member Functions

template<typename _Tp > constexpr _Tp && operator() (_Tp &&__t) const noexcept

Detailed Description

[func.identity] The identity function.

Definition at line 47 of file functional.

Member Typedef Documentation

using std::identity::is_transparent = __is_transparent

Definition at line 55 of file functional.

Member Function Documentation

template<typename _Tp > constexpr _Tp && std::identity::operator() (_Tp && __t) const [inline], [constexpr], [noexcept]

Definition at line 52 of file functional.


Generated automatically by Doxygen for libstdc++ from the source code.

Mon Aug 22 2022 libstdc++