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

Specialisation of piranha::boost_save() for arithmetic types. More...

#include <piranha/s11n.hpp>

Inheritance diagram for piranha::boost_save_impl< Archive, T, boost_save_arithmetic_enabler< Archive, T > >:
Inheritance graph
[legend]
Collaboration diagram for piranha::boost_save_impl< Archive, T, boost_save_arithmetic_enabler< Archive, T > >:
Collaboration 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_impl< Archive, T, boost_save_arithmetic_enabler< Archive, T > >

Specialisation of piranha::boost_save() for arithmetic types.

Note
This specialisation is enabled if Archive and T satisfy piranha::is_boost_saving_archive and T is either a floating-point type, or one of
  • char, signed char, or unsigned char,
  • int or unsigned,
  • long or unsigned long,
  • long long or unsigned long long,
  • bool.

Definition at line 275 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
inlineinherited

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: