identity

Description

The identity function is a unary function object that returns what’s given to it.

Semantics

assert(identity(x) == x);

Synopsis

template<class T>
constexpr T identity(T&& x);