piranha
0.10
|
Specialisation of piranha::msgpack_convert() for piranha::mp_integer. More...
#include <piranha/mp_integer.hpp>
Public Member Functions | |
void | operator() (T &n, const msgpack::object &o, msgpack_format f) const |
Call operator. More... | |
Specialisation of piranha::msgpack_convert() for piranha::mp_integer.
T
is an instance of piranha::mp_integer,bool
and std::string
satisfy piranha::has_msgpack_convert,std::vector<msgpack::object>
can be safely converted to the integral type representing the size of the integer. Definition at line 901 of file mp_integer.hpp.
|
inline |
Call operator.
This method will convert the object o
into n
. If f
is piranha::msgpack_format::binary, this method offers the basic exception safety guarantee and it performs minimal checking on the input data. Calling this method in binary mode will result in undefined behaviour if o
does not contain an integer serialized via msgpack_pack().
n | the destination piranha::mp_integer. |
o | source object. |
f | the desired piranha::msgpack_format. |
std::invalid_argument | if, in binary mode, the serialized static integer has a number of limbs greater than its static size. |
std::overflow_error | if the number of limbs is larger than an implementation-defined value. |
unspecified | any exception thrown by:
|
Definition at line 922 of file mp_integer.hpp.