![]() |
Spicy
|
#include <type-info.h>
Public Member Functions | |
Enum (std::vector< enum_::Label > labels) | |
const auto & | labels () const |
enum_::Label | get (const Value &v) const |
Auxiliary type information for type `enum<*>
.
|
inline |
Constructor.
labels | the type's labels |
|
inline |
Given an enum value, returns the label is represents. If the value does not refer to a known label, a unknown-<value>
label is returned.
|
inline |
Returns the type's labels.