xte::is_unsigned<>

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

Checks that a given type is an unsigned integer type, excluding bool.


Definition

template<typename T>
concept is_unsigned = std::unsigned_integral<T> && !xte::is_same_drop_cv<T, bool>;



Example

static_assert(xte::is_unsigned<unsigned int>);
static_assert(not xte::is_unsigned<int>);
[View in Compiler Explorer]