The OpenD Programming Language

NegInfInterval.contains

Whether the given time point is within this interval.

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

Parameters

timePoint TP

The time point to check for inclusion in this interval.

Examples

assert(NegInfInterval!Date(Date(2012, 3, 1)).contains(Date(1994, 12, 24)));
assert(NegInfInterval!Date(Date(2012, 3, 1)).contains(Date(2000, 1, 5)));
assert(!NegInfInterval!Date(Date(2012, 3, 1)).contains(Date(2012, 3, 1)));

Meta