piranha
0.10
|
Specialisation of piranha::boost_load() for piranha::mp_integer. More...
#include <piranha/mp_integer.hpp>
Public Member Functions | |
void | operator() (Archive &ar, mp_integer< SSize > &x) const |
Call operator. More... | |
Specialisation of piranha::boost_load() for piranha::mp_integer.
std::string
and all the integral types in terms of which piranha::mp_integer is implemented satisfy piranha::has_boost_load.If Archive
is boost::archive::binary_iarchive
, this specialisation offers the basic exception guarantee and performs minimal checking of the input data.
std::invalid_argument | if the serialized integer is static and its number of limbs is greater than SSize . |
std::overflow_error | if the number of limbs is larger than an implementation-defined value. |
unspecified | any exception thrown by piranha::boost_load(), or by the constructor of piranha::mp_integer from string. |
Definition at line 790 of file mp_integer.hpp.
|
inlineinherited |
Call operator.
The body of this operator is equivalent to:
That is, the content of ar
will loaded into x
using the stream extraction operator. In order for this method to be callable, the type T
must provide valid overloads of the methods/functions needed by the Boost serialization API.
ar | the source archive. |
x | the object into which the content of ar will be deserialized. |
unspecified | any exception thrown by the extraction of ar into x . |