piranha  0.10
Public Member Functions | List of all members
piranha::msgpack_pack_impl< Stream, real, real_msgpack_pack_enabler< Stream > > Struct Template Reference

Specialisation of piranha::msgpack_pack() for piranha::real. More...

#include <piranha/real.hpp>

Public Member Functions

void operator() (msgpack::packer< Stream > &p, const real &x, msgpack_format f) const
 Call operator. More...
 

Detailed Description

template<typename Stream>
struct piranha::msgpack_pack_impl< Stream, real, real_msgpack_pack_enabler< Stream > >

Specialisation of piranha::msgpack_pack() for piranha::real.

Note
This specialisation is enabled if T is piranha::real and the piranha::real::msgpack_pack() method is supported with a stream of type Stream.

Definition at line 2426 of file real.hpp.

Member Function Documentation

◆ operator()()

template<typename Stream >
void piranha::msgpack_pack_impl< Stream, real, real_msgpack_pack_enabler< Stream > >::operator() ( msgpack::packer< Stream > &  p,
const real x,
msgpack_format  f 
) const
inline

Call operator.

The call operator will use piranha::real::msgpack_pack() internally.

Parameters
ptarget msgpack::packer.
xpiranha::real to be serialized.
fthe desired piranha::msgpack_format.
Exceptions
unspecifiedany exception thrown by piranha::real::msgpack_pack().

Definition at line 2437 of file real.hpp.


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