Alexandria
2.25.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 N.
Referenced by 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 N, and boost::serialization::Save< N >::save().