-
#include "tensorstore/index_interval.h"
-
Result<IndexInterval>
tensorstore::ShiftIntervalBackward(IndexInterval interval,
Index min_offset,
Index max_offset); -
Result<IndexInterval>
tensorstore::ShiftIntervalBackward(IndexInterval interval,
Index offset); Subtracts an offset from the min and max bounds of an interval.
Equivalent to
ShiftInterval(interval, -min_offset, -max_offset)
, except that this function avoids overflow in the case thatmin_offset
ormax_offset
is equal tostd::numeric_limits<Index>::min()
.