mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-09 23:34:23 +00:00
update doc
This commit is contained in:
parent
715b442682
commit
84990c60b2
3 changed files with 5 additions and 3 deletions
|
|
@ -25,6 +25,8 @@ If you like this project, please consider donating to one of the funds that help
|
|||
* Enum value to string
|
||||
|
||||
```cpp
|
||||
#include <magic_enum/magic_enum.hpp>
|
||||
//....
|
||||
Color color = Color::RED;
|
||||
auto color_name = magic_enum::enum_name(color);
|
||||
// color_name -> "RED"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue