piranha  0.10
Public Member Functions | List of all members
piranha::boost_save_via_boost_api< Archive, T > Struct Template Reference

Implementation of piranha::boost_save() via the Boost API. More...

#include <piranha/s11n.hpp>

Inheritance diagram for piranha::boost_save_via_boost_api< Archive, T >:
Inheritance graph
[legend]

Public Member Functions

void operator() (Archive &ar, const T &x) const
 Call operator. More...
 

Detailed Description

template<typename Archive, typename T>
struct piranha::boost_save_via_boost_api< Archive, T >

Implementation of piranha::boost_save() via the Boost API.

This class can be used to implement piranha::boost_save() via a direct call to the Boost serialization API.

Definition at line 217 of file s11n.hpp.

Member Function Documentation

◆ operator()()

template<typename Archive, typename T>
void piranha::boost_save_via_boost_api< Archive, T >::operator() ( Archive &  ar,
const T &  x 
) const
inline

Call operator.

The body of this operator is equivalent to:

ar << x;

That is, x will be inserted into the archive ar using the stream insertion operator. In order for this method to be callable, the type T must provide valid overloads of the methods/functions needed by the Boost serialization API.

Parameters
arthe archive into which x will be serialized.
xthe serialization argument.
Exceptions
unspecifiedany exception thrown by the insertion of x into ar.

Definition at line 233 of file s11n.hpp.


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