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
[View in Compiler Explorer]static_assert (std ::same_as <xieite ::rm_v <volatile int >,int >);static_assert (std ::same_as <xieite ::rm_v <volatile int& >,int& >);