template <typename T>
rll::remove_cvref struct

Remove all cv qualifiers, references and pointers from a type.

Template parameters
T Type to remove qualifiers from.

If the type T is a reference type, provides the member typedef type which is the type referred to by T with its topmost cv-qualifiers removed. Otherwise type is T with its topmost cv-qualifiers removed.

This is a backport of the C++20 std::remove_cvref type trait.

Public types

using type = std::remove_cv_t<std::remove_reference_t<T>>
The type referred by T or T itself if it is not a reference, with top-level cv-qualifiers removed.