Kagome
Polkadot Runtime Engine in C++17
|
Impl details for boost::variant initialization by type index at runtime. More...
Classes | |
struct | functors_vector_builder |
Prepares initializers for each type of variant. More... | |
struct | is_boost_variant |
struct | is_boost_variant< boost::variant< Ts... > > |
Functions | |
template<typename Concrete , typename Variant > | |
void | init_variant (Variant &v) |
Impl details for boost::variant initialization by type index at runtime.
void kagome::common::dynamic_variant::init_variant | ( | Variant & | v | ) |
Initializes variant with default constructed object of some type
Concrete | - a type to construct and assign to variant |
Variant | - type of variant variable |
v | - variant to intiialize |
Definition at line 29 of file variant_builder.hpp.