Neargye / magic_enum

Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code
MIT License
4.76k stars 422 forks source link
c-plus-plus c-plus-plus-17 cplusplus cplusplus-17 cpp cpp17 enum enum-to-string header-only metaprogramming no-dependencies reflection serialization single-file string-to-enum

Github releases Conan package Vcpkg package Build2 package Meson wrap License Compiler explorer OpenSSF Scorecard Stand With Ukraine

Magic Enum C++

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

If you like this project, please consider donating to one of the funds that help victims of the war in Ukraine: https://u24.gov.ua.

Documentation

Features & Examples

Integration

Compiler compatibility

Licensed under the MIT License