The OpenD Programming Language

PosInfInterval.contains

Whether the given time point is within this interval.

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

Parameters

timePoint TP

The time point to check for inclusion in this interval.

Examples

assert(!PosInfInterval!Date(Date(1996, 1, 2)).contains(Date(1994, 12, 24)));
assert(PosInfInterval!Date(Date(1996, 1, 2)).contains(Date(2000, 1, 5)));

Meta