The OpenD Programming Language

NegInfInterval.isAfter

Whether this interval is after the given time point.

Always returns false because an interval beginning at negative infinity can never be after any time point.

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

Parameters

timePoint TP

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

Examples

assert(!NegInfInterval!Date(Date(2012, 3, 1)).isAfter(Date(1994, 12, 24)));
assert(!NegInfInterval!Date(Date(2012, 3, 1)).isAfter(Date(2000, 1, 5)));
assert(!NegInfInterval!Date(Date(2012, 3, 1)).isAfter(Date(2012, 3, 1)));

Meta