identity

Description

The identity function is an unary function object that returns whats given to it.

Semantics

assert(identity(x) == x);

Synopsis

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