StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::Type::Numeral Concept Reference

Host integer or suite count type. More...

#include <StormByte/type_traits/categories.hxx>

Concept definition

template<typename T>
Integral type (bool, char, int, long, …), including cv.
Definition categories.hxx:185
Host integer or suite count type.
Definition categories.hxx:257
Same type after stripping cv and references from both sides.
Definition relations.hxx:94

Detailed Description

Host integer or suite count type.

Template Parameters
TType to test (cv/ref stripped).

Matches every StormByte::Type::Integral, StormByte::Size (abstract units) and StormByte::ByteSize (octets). Both suite types store a uint64_t and convert implicitly only to std::size_t.

Does not match floating-point types.

static_assert(Type::Numeral<int>);
static_assert(Type::Numeral<Size>);
static_assert(Type::Numeral<ByteSize>);
static_assert(!Type::Numeral<double>);