#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 that min_offset or max_offset is equal to std::numeric_limits<Index>::min().