Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code. magic_enum does not pretend to be a silver bullet for reflection for enums, it was originally designed for small enum. If you are using vcpkg on your project for external dependencies, then you can use the magic-enum package. If you are using Conan to manage your dependencies, merely add magic_enum/x.y.z to your conan's requires, where x.y.z is the release version you want to use.
Features
- Obtains enum value from string or integer
- Returns enum value at specified index
- Obtains integer value from enum value
- Allows runtime enum value transformation to constexpr context
- Improved UB-free "SFINAE-friendly"
- Bitwise operators for enums
Categories
FrameworksLicense
MIT LicenseFollow Magic Enum C++
Other Useful Business Software
Our Free Plans just got better! | Auth0
You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of Magic Enum C++!