NegInfInterval.expand

void expand(D)(D duration) if (__traits(compiles, end + duration)) pure nothrow

Expands the interval forwards in time. Effectively, it does

end += duration.

Parameters

durationThe duration to expand the interval by. Example: -------------------- auto interval1 = NegInfInterval!Date(Date(2012, 3, 1)); auto interval2 = NegInfInterval!Date(Date(2012, 3, 1)); interval1.expand(dur!"days"(2)); assert(interval1 == NegInfInterval!Date(Date(2012, 3, 3))); interval2.expand(dur!"days"(-2)); assert(interval2 == NegInfInterval!Date(Date(2012, 2, 28))); --------------------