xte::is_same_drop_cv<>

Defined in header <xte/trait/is_same_drop_cv.hpp>

Checks that all given types are the same, ignoring const and volatile qualifiers.


Definition

template<typename T, typename... Ts>
concept is_same_drop_cv = xte::is_same<xte::drop_cv<T>, xte::drop_cv<Ts>...>;



Example

static_assert(xte::is_same_drop_cv<int, const int, volatile int>);
static_assert(not xte::is_same_drop_cv<int, const int&, int>);
[View in Compiler Explorer]