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

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

#include <piranha/mp_rational.hpp>

Public Member Functions

void operator() (T &q, const msgpack::object &o, msgpack_format f) const
 Call operator. More...
 

Detailed Description

template<typename T>
struct piranha::msgpack_convert_impl< T, mp_rational_msgpack_convert_enabler< T > >

Specialisation of piranha::msgpack_convert() 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_convert() method.

Definition at line 2322 of file mp_rational.hpp.

Member Function Documentation

◆ operator()()

template<typename T >
void piranha::msgpack_convert_impl< T, mp_rational_msgpack_convert_enabler< T > >::operator() ( T &  q,
const msgpack::object &  o,
msgpack_format  f 
) const
inline

Call operator.

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

Parameters
qthe target rational.
othe source msgpack::object.
fthe desired piranha::msgpack_format.
Exceptions
unspecifiedany exception thrown by piranha::mp_rational::msgpack_convert().

Definition at line 2333 of file mp_rational.hpp.


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