magic_enum

Enum reflector

A C++ library providing static reflection for enums without boilerplate code

Static reflection for enums (to string, from string, iteration) for modern C++, work with any enum type without any macro or boilerplate code

GitHub

5k stars
66 watching
449 forks
Language: C++
last commit: almost 2 years ago
Linked from 6 awesome lists

c-plus-plusc-plus-plus-17cpluspluscplusplus-17cppcpp17enumenum-to-stringheader-onlymetaprogrammingno-dependenciesreflectionserializationsingle-filestring-to-enum

Backlinks from these awesome lists:

Related projects:

RepositoryDescriptionStars
arturbac/simple_enumProvides efficient support for C++ enumerations with features like type-safe conversions and indexing22
brainspec/enumerizeAn enumeration library for Ruby that integrates I18n support and supports various databases including ActiveRecord, Mongoid, MongoMapper/Sequel.1,741
lloydmeta/enumeratumAn enumeration implementation for Scala with exhaustive pattern match warnings and helpful integrations.1,194
lvyahui8/goenumAutomated enumeration type implementation with utility functions.12
willwray/enum_reflectGenerates code for enum classes in C++9
blackmatov/enum.hppA header-only C++17 library providing compile-time enum reflection capabilities45
dalzhim/articleenumclass-v2A utility to simplify the creation of bitwise operators for custom enum classes in C++20
tylerbrinkley/enums.netA type-safe enum utility library with high-performance extension methods and attributes management1,750
ashenblade/enumclassA source generator that creates type-safe classes inspired by Kotlin's enum class4
engrajabi/enum.source.generatorA C# source generator that creates an enumeration class from an enum type without using reflection.181
abice/go-enumGenerates Go enum types with optional niceties like iota definitions and string implementations.771
alkenso/asenumAn enumeration library with associated values20
therocode/smartenumA header file providing macros to simplify the declaration and use of enums in C++ with automatic string conversion and iteration support.62
albi005/materialcolorutilitiesA set of C# libraries providing utility functions for working with color schemes and themes in .NET applications72
aantron/better-enumsA compile-time enum library with reflection capabilities, allowing for clean syntax and flexible use in C++ programs.1,687