13#if !defined(VITA_VALUE_H)
34enum domain_t {d_void = 0, d_int, d_double, d_string};
36using D_VOID = std::monostate;
38using D_DOUBLE = double;
39using D_STRING = std::string;
45using value_t = std::variant<D_VOID, D_INT, D_DOUBLE, D_STRING>;
53 return !std::holds_alternative<std::monostate>(v);
The main namespace for the project.
bool has_value(const value_t &v)
domain_t
In an environment where a symbol such as '+' may have many different meanings, it's useful to specify...
std::ostream & operator<<(std::ostream &o, hash_t h)
Mainly useful for debugging / testing.
std::variant< D_VOID, D_INT, D_DOUBLE, D_STRING > value_t
A variant containing the data types used by the interpreter for internal calculations / output value ...