Tuple.opCmp

Comparison for ordering.

  1. int opCmp(R rhs)
    struct Tuple
    int
    opCmp
    (
    R
    )
    (
    R rhs
    )
    if (
    areCompatibleTuples!(typeof(this), R, "<")
    )
  2. int opCmp(R rhs)

Parameters

rhs R

The Tuple to compare against. It must meet the criteria for comparison between Tuples.

Return Value

Type: int

For any values v1 on the right-hand side and v2 on the left-hand side:

  • A negative integer if the expression v1 < v2 is true.
  • A positive integer if the expression v1 > v2 is true.
  • 0 if the expression v1 == v2 is true.

Meta