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

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>);
[View in Compiler Explorer]