PosInfInterval.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 interval)
    struct PosInfInterval(TP)
    const pure nothrow
    bool
    contains
    ()
  4. bool contains(NegInfInterval!TP interval)

Parameters

interval PosInfInterval

The interval to check for inclusion in this interval.

Examples

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

assert(!PosInfInterval!Date(Date(1996, 1, 2)).contains(
            PosInfInterval!Date(Date(1995, 7, 2))));

Meta