View source code
Display the source code in std/bigint.d from which this
page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a
Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Function std.bigint.BigInt.opEquals
Implements BigInt
equality test with other BigInt
's and built-in
integer types.
bool opEquals
(
auto const ref BigInt y
) const pure @nogc;
bool opEquals(T)
(
T y
) const pure nothrow @nogc
if (isIntegral!T);
Example
auto x = BigInt("12345");
auto y = BigInt("12340");
int z = 12345;
int w = 54321;
writeln(x); // x
assert(x != y);
writeln(x); // y + 5
writeln(x); // z
assert(x != w);
Authors
Don Clugston
License
Copyright © 1999-2018 by the D Language Foundation | Page generated by ddox.