1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-02-07 04:10:09 +00:00

Enum switch (#168)

This commit is contained in:
Bela Schaum 2022-03-18 13:07:00 +01:00 committed by GitHub
parent 542aacea41
commit 64bedded2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 288 additions and 11 deletions

View file

@ -13,6 +13,8 @@
* [`enum_contains` checks whether enum contains enumerator with such value.](#enum_contains)
* [`enum_type_name` returns type name of enum.](#enum_type_name)
* [`enum_fuse` returns a bijective mix of enum values.](#enum_fuse)
* [`enum_switch` TODO.](#enum_switch)
* [`enum_for_each` TODO.](#enum_for_each)
* [`is_unscoped_enum` checks whether type is an Unscoped enumeration.](#is_unscoped_enum)
* [`is_scoped_enum` checks whether type is an Scoped enumeration.](#is_scoped_enum)
* [`underlying_type` improved UB-free "SFINAE-friendly" underlying_type.](#underlying_type)
@ -364,6 +366,14 @@ template <typename... Es>
}
```
## `enum_switch`
TODO
## `enum_for_each`
TODO
## `is_unscoped_enum`
```cpp