The OpenD Programming Language

PosInfInterval.contains

Whether the given interval is completely within this interval.

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

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

Parameters

interval NegInfInterval!TP

The interval to check for inclusion in this interval.

Examples

assert(!PosInfInterval!Date(Date(1996, 1, 2)).contains(
            NegInfInterval!Date(Date(1996, 5, 4))));

Meta