piranha
0.10
|
Specialisation of piranha::safe_cast() for conversions involving piranha::mp_integer. More...
#include <piranha/mp_integer.hpp>
Public Member Functions | |
To | operator() (const From &x) const |
Call operator. More... | |
Specialisation of piranha::safe_cast() for conversions involving piranha::mp_integer.
To
is an instance of piranha::mp_integer and From
is a C++ floating-point type from which piranha::mp_integer can be constructed,To
is an instance of piranha::mp_integer and From
is a C++ integral type from which piranha::mp_integer can be constructed,From
is an instance of piranha::mp_integer and To
is a C++ integral type constructible from piranha::mp_integer. Definition at line 1032 of file mp_integer.hpp.
|
inline |
Call operator.
x | input value to be converted. |
x
converted to To
.piranha::safe_cast_failure | if:
|
unspecified | any exception thrown by the constructor of piranha::mp_integer from a floating-point. |
Definition at line 1083 of file mp_integer.hpp.