decay_copy

Source code

An implementation of decay_copy.

template<class T>
std::decay_t<T> tl::decay_copy(T &&t)

Creates a copy of t, decaying the type. Used to produce an rvalue from some expression without accidentally moving lvalues.