enum_name
Loading...
Searching...
No Matches
Public Attributes | Static Public Attributes | List of all members
mgutility::detail::enum_name_parse_result< U, Min, Max > Struct Template Reference

Parse result for enum names. More...

#include <enum_name_impl.hpp>

Public Attributes

fixed_string< MGUTILITY_GLOBAL_ENUM_BLOB_SIZE > strings
 
std::array< pair< std::size_t, std::size_t >, size > ranges
 

Static Public Attributes

static constexpr auto size = std::size_t{Max - Min}
 

Detailed Description

template<typename U, int Min, int Max>
struct mgutility::detail::enum_name_parse_result< U, Min, Max >

Parse result for enum names.

Templated on the underlying type U instead of the enum type itself, so all enums with the same underlying type (e.g., all 'int'-based enums) share the same struct type. The strings buffer is a fixed size (MGUTILITY_GLOBAL_ENUM_BLOB_SIZE) rather than a per-enum-type fixed_string, reducing template bloat.

Template Parameters
UThe underlying type of the enum (e.g., int, unsigned int).
MinThe minimum enum value.
MaxThe maximum enum value.

The documentation for this struct was generated from the following files: