The OpenD Programming Language

NegInfInterval.contains

Whether the given interval is completely within this interval.

Always returns false because an interval beginning at negative infinity can never contain an interval going to positive infinity.

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

Parameters

interval PosInfInterval!TP

The interval to check for inclusion in this interval.

Examples

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

Meta