-
Notifications
You must be signed in to change notification settings - Fork 0
c8_natural_natural
Dave Hudson edited this page May 2, 2017
·
4 revisions
natural() noexcept;
Constructs a c8::natural
with a value of zero.
None.
natural(unsigned long long v) noexcept;
Constructs a c8::natural
with a value of v
.
None.
natural(const std::string &v);
Constructs a c8::natural
by parsing the string v
. v
may have a prefix of "0" for an octal value, or "0x" for a hexadecimal value.
-
std::bad_alloc
in the event of a memory allocation failure. -
c8::invalid_argument
in the event of an empty, or incorrectly formed, stringv
.
natural(const natural &v);
Constructs a c8::natural
by copying the existing natural number v
.
-
std::bad_alloc
in the event of a memory allocation failure.
natural(natural &&v) noexcept;
Constructs a c8::natural
by moving the contents of the existing natural number v
. Afterwards v
will be left as zero.
None.