StormByte 3.0.0
C++26 foundation of the StormByte suite
Loading...
Searching...
No Matches
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  Type
 Octet count. Defined in byte_size.hxx. Forwarded so Type::Numeral can name it.
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
 StormByte::Type::Enum whose underlying type is unsigned.
concept  StormByte::Type::ScopedEnum
 Scoped enumeration (enum class / enum struct).

Helpers

template<typename E>
using StormByte::Type::UnderlyingType = std::underlying_type_t<std::remove_cv_t<E>>
 Underlying integer type of enumeration E.
template<typename E>
requires Enum<E>
constexpr UnderlyingType< E > StormByte::Type::ToUnderlying (E e) noexcept
 Converts an enumeration value to its underlying integer.