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

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

#include <piranha/mp_rational.hpp>

Public Member Functions

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

Detailed Description

template<typename Stream, typename T>
struct piranha::msgpack_pack_impl< Stream, T, mp_rational_msgpack_pack_enabler< Stream, T > >

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

Note
This specialisation is enabled only if T is an instance of piranha::mp_rational supporting the piranha::mp_rational::msgpack_pack() method.

Definition at line 2298 of file mp_rational.hpp.

Member Function Documentation

◆ operator()()

template<typename Stream , typename T >
void piranha::msgpack_pack_impl< Stream, T, mp_rational_msgpack_pack_enabler< Stream, T > >::operator() ( msgpack::packer< Stream > &  p,
const T &  q,
msgpack_format  f 
) const
inline

Call operator.

The call operator will use the piranha::mp_rational::msgpack_pack() method of q.

Parameters
pthe source msgpack::packer.
qthe input rational.
fthe desired piranha::msgpack_format.
Exceptions
unspecifiedany exception thrown by piranha::mp_rational::msgpack_pack().

Definition at line 2309 of file mp_rational.hpp.


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