The OpenD Programming Language

NegInfInterval.contains

Whether the given interval is completely within this interval.

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

Parameters

interval NegInfInterval

The interval to check for inclusion in this interval.

Examples

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

assert(!NegInfInterval!Date(Date(2012, 3, 1)).contains(
            NegInfInterval!Date(Date(2013, 7, 9))));

Meta