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:
parent
dab56da58c
commit
703db3613d
2 changed files with 17 additions and 13 deletions
|
|
@ -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."`.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue