mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
Put get to magic_enum::containers namespace (#316)
This commit is contained in:
parent
016883d29a
commit
56dcb011c2
5 changed files with 24 additions and 28 deletions
|
|
@ -255,7 +255,7 @@ Header-only C++17 library provides static reflection for enums, work with any en
|
|||
color_rgb_array[Color::RED] = {255, 0, 0};
|
||||
color_rgb_array[Color::GREEN] = {0, 255, 0};
|
||||
color_rgb_array[Color::BLUE] = {0, 0, 255};
|
||||
std::get<Color::BLUE>(color_rgb_array) // -> RGB{0, 0, 255}
|
||||
magic_enum::containers::get<Color::BLUE>(color_rgb_array) // -> RGB{0, 0, 255}
|
||||
```
|
||||
|
||||
* `containers::bitset` bitset container for enums.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue