magic_enum
Enum reflector
Static reflection for enums in C++ without macro or 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
5k stars
66 watching
443 forks
Language: C++
last commit: 9 days ago
Linked from 6 awesome lists
c-plus-plusc-plus-plus-17cpluspluscplusplus-17cppcpp17enumenum-to-stringheader-onlymetaprogrammingno-dependenciesreflectionserializationsingle-filestring-to-enum
Related projects:
Repository | Description | Stars |
---|---|---|
arturbac/simple_enum | Provides efficient support for C++ enumerations with features like type-safe conversions and indexing | 21 |
brainspec/enumerize | An enumeration library for Ruby that integrates I18n support and supports various databases including ActiveRecord, Mongoid, MongoMapper/Sequel. | 1,739 |
lloydmeta/enumeratum | An enumeration implementation for Scala with exhaustive pattern match warnings and helpful integrations. | 1,192 |
lvyahui8/goenum | Automated enumeration type implementation with utility functions. | 12 |
willwray/enum_reflect | Generates code for enum classes in C++ | 9 |
blackmatov/enum.hpp | A header-only C++17 library providing compile-time enum reflection capabilities | 45 |
dalzhim/articleenumclass-v2 | A utility to simplify the creation of bitwise operators for custom enum classes in C++ | 20 |
tylerbrinkley/enums.net | A type-safe enum utility library with high-performance extension methods and attributes management | 1,742 |
ashenblade/enumclass | A source generator that creates type-safe classes inspired by Kotlin's enum class | 4 |
engrajabi/enum.source.generator | A C# source generator that creates an enumeration class from an enum type without using reflection. | 180 |
abice/go-enum | Generates Go enum types with optional niceties like iota definitions and string implementations. | 757 |
alkenso/asenum | An enumeration library with associated values | 20 |
therocode/smartenum | A header file providing macros to simplify the declaration and use of enums in C++ with automatic string conversion and iteration support. | 62 |
albi005/materialcolorutilities | A set of C# libraries providing utility functions for working with color schemes and themes in .NET applications | 72 |
aantron/better-enums | A compile-time enum library with reflection capabilities, allowing for clean syntax and flexible use in C++ programs. | 1,680 |