StormByte C++ Library 1.2.0
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
Namespaces | Concepts | Typedefs | Functions
enums.hxx File Reference
#include <StormByte/type_traits/categories.hxx>
#include <type_traits>
Include dependency graph for enums.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  StormByte
 Root namespace of the StormByte suite.
 
namespace  StormByte::Type
 Named concepts and small type utilities used across the suite.
 

Concepts

concept  StormByte::Type::Enum
 Unscoped or scoped enumeration (enum / enum class).
 
concept  StormByte::Type::UnsignedEnum
 Enum whose underlying type is unsigned.
 
concept  StormByte::Type::ScopedEnum
 Scoped enumeration (enum class / enum struct).
 

Typedefs

template<typename E >
using StormByte::Type::UnderlyingType = std::underlying_type_t< std::remove_cv_t< E > >
 Underlying integer type of enumeration E.
 

Functions

template<typename E >
requires Enum<E>
constexpr UnderlyingType< E > StormByte::Type::ToUnderlying (E e) noexcept
 Converts an enumeration value to its underlying integer.