Kagome
Polkadot Runtime Engine in C++17
kagome::common::dynamic_variant Namespace Reference

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)
 

Detailed Description

Impl details for boost::variant initialization by type index at runtime.

Function Documentation

template<typename Concrete , typename Variant >
void kagome::common::dynamic_variant::init_variant ( Variant &  v)

Initializes variant with default constructed object of some type

Template Parameters
Concrete- a type to construct and assign to variant
Variant- type of variant variable
Parameters
v- variant to intiialize

Definition at line 29 of file variant_builder.hpp.