1
0
Fork 0
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:
neargye 2024-11-19 23:47:49 +02:00
parent 715b442682
commit 84990c60b2
3 changed files with 5 additions and 3 deletions

View file

@ -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"