6#include <boost/core/typeinfo.hpp>
11template<
typename Result>
14template <
typename variant,
int32_t i = 0>
17 if constexpr(i >= std::variant_size_v<variant>)
32template<
typename VariantType,
typename T, std::
size_t index = 0>
35 if constexpr (index == std::variant_size_v<VariantType>)
39 else if constexpr (std::is_same_v<std::variant_alternative_t<index, VariantType>,
T>)
84 s = std::variant<
T...>();
91template<
typename...
T>
struct get_typename {
static const char*
name() {
return BOOST_CORE_TYPEID(std::variant<T...>).name(); } };
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
Defines exception's used by fc.
#define FC_THROW_EXCEPTION(EXCEPTION, FORMAT,...)
std::vector< fc::variant > variants
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
constexpr std::size_t get_index()
void from_index(variant &v, int index)
#define T(meth, val, expected)
from_static_variant(variant &dv)
void operator()(const T &v) const
static const char * name()
void operator()(T &v) const
to_static_variant(const variant &dv)