View source code
Display the source code in std/bigint.d from which this page was generated on
github.
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.
Page wiki
View or edit the community-maintained wiki page associated with this page.
Function std.bigint.BigInt.opEquals
Implements BigInt
equality test with other BigInt
's and built-in
integer types.
Prototypes
bool opEquals()( 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; assert(x == x); assert(x != y); assert(x == y + 5); assert(x == z); assert(x != w);
Authors
Don Clugston