-
Notifications
You must be signed in to change notification settings - Fork 0
c8_integer_integer
Dave Hudson edited this page May 2, 2017
·
3 revisions
integer() noexcept;Constructs a c8::integer with a value of zero.
None.
integer(long long v) noexcept;Constructs a c8::integer with a value of v.
None.
integer(const natural &v);Constructs a positive c8::integer with a value of v.
-
std::bad_allocin the event of a memory allocation failure.
integer(const std::string &v);Constructs a c8::integer by parsing the string v. v may have a prefix of "0" for an octal value, or "0x" for a hexadecimal value. v may also be prefaced with a '-' or '+' to indicate a negative or positive value respectively.
-
std::bad_allocin the event of a memory allocation failure. -
c8::invalid_argumentin the event of an empty, or incorrectly formed, stringv.
integer(const integer &v);Constructs a c8::integer by copying the existing integer v.
-
std::bad_allocin the event of a memory allocation failure.
integer(integer &&v) noexcept;Constructs a c8::integer by moving the contents of the existing integer v. Afterwards v will be left as zero.
None.