xieite ::rm_ref <>
Defined in header <xieite/trait/rm_ref.hpp>
A shorter alias for
std ::remove_reference_t <>
, named consistently with other utilities in this library.Declaration
template <typename T >using rm_ref =std ::remove_reference_t <T >;
Example
[View in Compiler Explorer]static_assert (std ::same_as <xieite ::rm_ref <int >,int >);static_assert (std ::same_as <xieite ::rm_ref <int& >,int >);static_assert (std ::same_as <xieite ::rm_ref <int&& >,int >);