xte::is_same_any_drop_cv<>

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

Checks whether the first type is the same as at least one of the following types, ignoring const and volatile qualifiers.


Definition

template<typename T, typename... Ts>
concept is_same_any_drop_cv = (... || xte::is_same_drop_cv<T, Ts>);



Example

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