Registry / utility / magic-enum

magic-enum

JSON →
library0.9.7vcpkgunverified

Header-only C++17 library provides static reflection for enums, work with any enum type without any macro or boilerplate code.

vcpkg install magic-enum
INSTALL
IMPORT
SIG · MAGIC-ENUM
M
magic-enum
utilitycppv0.9.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

magic_enum.hpp
#include <magic_enum.hpp>

Get the name of an enum value

#include <magic_enum.hpp> #include <iostream> enum class Color { Red, Green, Blue }; int main() { Color c = Color::Green; std::cout << magic_enum::enum_name(c) << std::endl; return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.7latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

magic-enum — pip install magic-enum · libregistry