1 个仓库
Encodes two enum values into a single integer by combining their indices into separate bit ranges for multi-level switch dispatch.
Distinct from Bit-Level Integer Operations: Distinct from Bit-Level Integer Operations: specifically encodes enum indices into bit ranges, not general bit manipulation.
Explore 1 awesome GitHub repository matching software engineering & architecture · Enum Fusion Encodings. Refine with filters or upvote what's useful.
Magic Enum is a C++ library that provides compile-time reflection for enumerations, enabling conversion between enum values and their string names, iteration over enum members, and validation of enum values without relying on macros or external code generation. It uses template metaprogramming and constexpr functions to extract enum information directly from the compiler's internal representation, making the entire reflection process static and free of runtime overhead. The library distinguishes itself through its comprehensive set of compile-time enum utilities, including the ability to coun
Implements enum fusion by encoding two enum indices into a single integer for multi-level switches.