mlpack
Public Member Functions | List of all members
cereal::PointerVectorVariantWrapper< VariantTypes > Class Template Reference

The objective of this class is to create a wrapper for a vector of boost::variant that holds pointer. More...

#include <pointer_vector_variant_wrapper.hpp>

Public Member Functions

 PointerVectorVariantWrapper (std::vector< boost::variant< VariantTypes... >> &vecPointerVar)
 
template<class Archive >
void save (Archive &ar) const
 
template<class Archive >
void load (Archive &ar)
 

Detailed Description

template<typename... VariantTypes>
class cereal::PointerVectorVariantWrapper< VariantTypes >

The objective of this class is to create a wrapper for a vector of boost::variant that holds pointer.

Cereal supports the serialization of boost::variant, but we need to serialize it if it holds a vector of boost::variant that holds a pointers.


The documentation for this class was generated from the following file: