WideUInt.opEquals

Enables equality comparison with WideUInt of the same size

  1. equals_t opEquals(ulong rhs)
  2. equals_t opEquals(WideUInt rhs)
    struct WideUInt(size_t N)
    equals_t
    opEquals

Parameters

rhs WideUInt

value to compare against

Return Value

Type: equals_t

value as defined by opEquals spec

Examples

Enables ordering comparison with WideUInt of the same size

Params: rhs = value to compare against

Returns: value as defined by opCmp spec

WideUInt num1, num2;
num1.payload[1] = 1;
num2.payload[2] = 1;
test(num1 < num2);
test(num2 > num1);

Meta