Alexandria 2.31.0
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
boost::serialization::Save< N > Struct Template Reference

#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)
 

Detailed Description

template<size_t N>
struct boost::serialization::Save< N >

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.

Definition at line 40 of file tuple.h.

Member Function Documentation

◆ save() [1/2]

template<size_t N>
template<typename Archive , typename... Args>
static void boost::serialization::Save< N >::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 
)
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().

Here is the call graph for this function:

◆ save() [2/2]

template<size_t N>
template<typename Archive , typename... Args>
static void boost::serialization::Save< N >::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 
)
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().

Here is the call graph for this function:

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