NegInfInterval.isBefore

Whether this interval is before the given interval and does not intersect it.

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

Parameters

interval PosInfInterval!TP

The interval to check for against this interval.

Examples

assert(!NegInfInterval!Date(Date(2012, 3, 1)).isBefore(
            PosInfInterval!Date(Date(1999, 5, 4))));

assert(NegInfInterval!Date(Date(2012, 3, 1)).isBefore(
            PosInfInterval!Date(Date(2012, 3, 1))));

Meta