API
simple_enum
- Compiler and C++ Standard support for simple_enum
- definig enum bounds
limits::min and limits::maxenum_castconversion fromstd::string_viewto enum valuesenum_indexandconsteval_enum_index,enum_size_venum_bitfiledenumeration indexed bitfieldsenum_nameconvert enumeration values to their string literalsenumeration_name_vcompile-time name of an enumeration typeenum_viewrange view over an enumerationenum_namesview over all string literal values of a bounded enumerationenum_enumerationsview over all values of a bounded enumerationstd::formatsupport for enumerationsfmt::formatsupport for enumerationsgeneric_error_categorygeneric template for error handling with std::expected<T,std::error_code>expected_ecandmake_unexpected_ecexpected error code helpers- glaze json/rpc with enum names support
- examples example usage
simple_enumCPM installation guidesimple_enumvcpkg installation guide