piranha  0.10
Public Member Functions | List of all members
piranha::msgpack_pack_impl< Stream, long double, msgpack_ld_enabler< Stream > > Struct Template Reference

Specialisation of piranha::msgpack_pack() for long double. More...

#include <piranha/s11n.hpp>

Public Member Functions

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

Detailed Description

template<typename Stream>
struct piranha::msgpack_pack_impl< Stream, long double, msgpack_ld_enabler< Stream > >

Specialisation of piranha::msgpack_pack() for long double.

Note
This specialisation is enabled if:

Definition at line 741 of file s11n.hpp.

Member Function Documentation

◆ operator()()

template<typename Stream >
void piranha::msgpack_pack_impl< Stream, long double, msgpack_ld_enabler< Stream > >::operator() ( msgpack::packer< Stream > &  packer,
const long double &  x,
msgpack_format  f 
) const
inline

Call operator.

If f is msgpack_format::binary then the byte representation of x is packed into packer. Otherwise, x is converted into string format and the resulting string will be packed into packer.

Parameters
packerthe target packer.
xthe object to be packed.
fthe serialization format.
Exceptions
unspecifiedany exception thrown by:

Definition at line 755 of file s11n.hpp.


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