xieite::rm_cv<>

Defined in header <xieite/trait/rm_cv.hpp>

Removes const and volatile qualifiers from a type, ignoring references.


Declaration

template<typename T>
using rm_cv = xieite::rm_c<xieite::rm_v<T>>;


Example

static_assert(std::same_as<xieite::rm_cv<const int>, int>);
static_assert(std::same_as<xieite::rm_cv<volatile int>, int>);
static_assert(std::same_as<xieite::rm_cv<volatile const int>, int>);
static_assert(std::same_as<xieite::rm_cv<volatile const int&>, int&>);
[View in Compiler Explorer]