StormByte C++ Library 0.0.9999
StormByte is a comprehensive, cross-platform C++ library aimed at easing system programming, configuration management, logging, and database handling tasks. This library provides a unified API that abstracts away the complexities and inconsistencies of different platforms (Windows, Linux).
Loading...
Searching...
No Matches
StormByte::Type::UnsignedEnum Concept Reference

Concept to check if a type is an unsigned enumeration. More...

#include <type_traits.hxx>

Concept definition

template<typename E>
std::is_unsigned_v<std::underlying_type_t<std::remove_cv_t<E>>>
Concept to check if a type is an enumeration.
Definition type_traits.hxx:208
Concept to check if a type is an unsigned enumeration.
Definition type_traits.hxx:221

Detailed Description

Concept to check if a type is an unsigned enumeration.

Template Parameters
EType to check.

A type satisfies UnsignedEnum if it is an enumeration with an unsigned underlying type.

template<Type::UnsignedEnum E>
void process(E value) { ... }