Alexandria  2.18
Please provide a description of the project.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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

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 46 of file tuple.h.

Referenced by boost::serialization::Save< N >::save().

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 58 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: