1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00

update doc

This commit is contained in:
neargye 2020-05-11 16:25:00 +05:00
parent dab56da58c
commit 703db3613d
2 changed files with 17 additions and 13 deletions

View file

@ -140,7 +140,7 @@ template <auto V>
constexpr string_view enum_name() noexcept;
```
* Returns `std::string_view`.
* Returns `std::string_view` with null-terminated string enum name from enum value.
* If enum value does not have name or [out of range](limitations.md), `enum_name(value)` returns empty string.
* If enum value does not have name, `enum_name<value>()` occurs the compilation error `"Enum value does not have a name."`.