MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ EnumByte() [3/3]

template<typename E>
MayaFlux::Reflect::EnumByte< E >::EnumByte ( int zero)
inlineconsteval

Accepts the literal 0 as the empty flag set; flag enums only.

Definition at line 213 of file EnumReflect.hpp.

214 { any_flag(flags); }
215 : raw(zero == 0 ? underlying_type {} : throw std::invalid_argument("EnumByte accepts only the literal 0 as an integer"))
216 {
217 }
std::underlying_type_t< E > underlying_type
underlying_type raw
Underlying integer storage.
Stores a scoped enum in its underlying integer type.