The OpenD Programming Language

PosInfInterval.isAfter

Whether this interval is after the given time point.

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

Parameters

timePoint TP

The time point to check whether this interval is after it.

Examples

assert(PosInfInterval!Date(Date(1996, 1, 2)).isAfter(Date(1994, 12, 24)));
assert(!PosInfInterval!Date(Date(1996, 1, 2)).isAfter(Date(2000, 1, 5)));

Meta