Alexandria 2.31.2
SDC-CH common library for the Euclid project
Loading...
Searching...
No Matches
boost::serialization::Load< 0 > Struct Reference

#include <tuple.h>

Static Public Member Functions

template<typename Archive, typename... Args>
static void load (Archive &, std::tuple< Args... > &, const unsigned int)
 This method does nothing. It exists to break the recursion.
 
static void load (Archive &ar, 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)
 
static void load (Archive &ar, 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

Class which defines the end of the recursion when loading the elements of a tuple in a boost archive.

Definition at line 115 of file tuple.h.

Member Function Documentation

◆ load() [1/3]

template<typename Archive, typename... Args>
static void boost::serialization::Load< 0 >::load ( Archive & ,
std::tuple< Args... > & ,
const unsigned int  )
inlinestatic

This method does nothing. It exists to break the recursion.

Definition at line 118 of file tuple.h.

◆ load() [2/3]

static void boost::serialization::Load< N >::load ( Archive & ar,
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 load for default constructible tuple elements. It just loads from the archive the element into the default constructed element of the tuple.

Definition at line 87 of file tuple.h.

◆ load() [3/3]

static void boost::serialization::Load< N >::load ( Archive & ar,
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 load for non default constructible tuple elements. It reads from the archive a pointer to enable the boost non default constructor mechanisms and then it uses the copy assignment operator to move the just red object in the tuple.

Definition at line 99 of file tuple.h.


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