Alexandria 2.31.0
SDC-CH common library for the Euclid project
|
#include <tuple.h>
Static Public Member Functions | |
template<typename Archive , typename... Args> | |
static void | save (Archive &ar, const std::tuple< Args... > &t, const unsigned int version, typename std::enable_if< std::is_default_constructible< typename std::tuple_element< N - 1, std::tuple< Args... > >::type >::value >::type *=0) |
template<typename Archive , typename... Args> | |
static void | save (Archive &ar, const std::tuple< Args... > &t, const unsigned int version, typename std::enable_if<!std::is_default_constructible< typename std::tuple_element< N - 1, std::tuple< Args... > >::type >::value >::type *=0) |
Class which saves in a boost serialization archive the elements of a tuple in a recursive way. It uses two different ways to save the elements, depending if their type has default constructor or not.
|
inlinestatic |
Version of save for default constructible tuple elements. It just saves in the archive the element.
Definition at line 45 of file tuple.h.
References boost::serialization::Save< N >::save().
Referenced by boost::serialization::Save< N >::save(), and boost::serialization::Save< N >::save().
|
inlinestatic |
Version of save for non default constructible tuple elements. It saves in the archive a pointer to the element, to enable the boost serialization non default constructor support. These objects must be read as pointers.
Definition at line 56 of file tuple.h.
References boost::serialization::Save< N >::save().