template<typename T, const std::string_view* Words, size_t Count>
GGUI::GGChoiceTraits struct

An enum written as one of its words, by value.

Public static variables

static GGPropKind Kind constexpr

Public static functions

static auto Choices() -> std::span<const std::string_view>
The words, by value.
static auto Read(const JsonValue& value, T& out, std::string& why) -> bool
One of the words, as its value. False, with why, if it isn't one.
static auto Write(const T& value) -> JsonValue
value's word.

Variable documentation

template<typename T, const std::string_view* Words, size_t Count>
static GGPropKind GGUI::GGChoiceTraits<T, Words, Count>::Kind constexpr

Choice