template<typename E E>
gtopt::EnumEntry struct

Name-value pair for an enumerator.

With C++26 static reflection (P2996 std::meta::enumerators_of) this table could be generated automatically. Until then it is maintained manually next to each enum definition.

Public variables

std::string_view name
E value