xieite::rm_v<>

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

Removes the volatile qualifier from a type, ignoring references.


Declaration

template<typename T>
using rm_v = xieite::cp_ref<T, std::remove_volatile_t<xieite::rm_ref<T>>>;


Example

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