PosInfInterval.isAdjacent

Whether the given interval is adjacent to this interval.

  1. bool isAdjacent(Interval!TP interval)
  2. bool isAdjacent(PosInfInterval interval)
  3. bool isAdjacent(NegInfInterval!TP interval)
    struct PosInfInterval(TP)
    const pure nothrow
    bool
    isAdjacent
    (
    scope const NegInfInterval!TP interval
    )

Parameters

interval NegInfInterval!TP

The interval to check whether its adjecent to this interval.

Examples

assert(PosInfInterval!Date(Date(1996, 1, 2)).isAdjacent(
            NegInfInterval!Date(Date(1996, 1, 2))));

assert(!PosInfInterval!Date(Date(1996, 1, 2)).isAdjacent(
            NegInfInterval!Date(Date(2000, 7, 1))));

Meta