O
ranges-v3
или magic_enum
Size: a a a
O
ranges-v3
или magic_enum
O
static_cast<int>(enum_value);
std::underlying_type
b
TS
static_cast<int>(enum_value);
std::underlying_type
static_cast<std::underlying_type_t<decltype(enum_value)>(enum_value);
A
static_cast<std::underlying_type_t<decltype(enum_value)>(enum_value);
O
static_cast<std::underlying_type_t<decltype(enum_value)>(enum_value);
magic_enum::enum_integer(enum_value)
или прямо его же, если не страшно тащить зависимостьS
static_cast<int>(enum_value);
std::underlying_type
O
b
b
Е
S
AZ
S
S
Е
AZ
AZ
Е
АК