mrdocs::describe::enum_to_string

Return the name of enumerator e exactly as it was declared.

Synopsis

Declared in <mrdocs/Support/Describe.hpp>

template<described E>
requires std::is_enum_v<E>
constexpr
std::string_view
enum_to_string(E e) noexcept;

Description

No case transformation is applied; the kebab-case form is produced by mrdocs::toString instead.

Return Value

The enumerator's declared name; the empty string for the undefined state (see MRDOCS_DESCRIBE_ENUM_UNDEFINED) or an unrecognized value.

Parameters

NameDescription
eThe enumerator to convert.