Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 425 Bytes

decay_copy.rst

File metadata and controls

11 lines (7 loc) · 425 Bytes

decay_copy

Source code

An implementation of decay_copy.

.. function:: 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.