mrdocs::describe::enum_from_string
Parse a declared enumerator name into an enumerator.
Synopsis
template<described E>
requires std::is_enum_v<E>
constexpr
bool
enum_from_string(
std::string_view name,
E& e) noexcept;
Description
Inverse of enum_to_string name is matched against the enumerator names exactly as declared.
Parameters
Name |
Description |
name |
The declared name; an empty name selects the undefined state when the enum has one (see MRDOCS_DESCRIBE_ENUM_UNDEFINED). |
e |
Set to the matching enumerator on success. |
Created with MrDocs