#include "tensorstore/index_interval.h"
bool tensorstore::ContainsOrUnbounded(IndexInterval outer,
                                      
IndexInterval inner);

Returns true if the lower and upper bound of inner is either unbounded or contained with the lower and upper bound, respectively, of outer.

Returns:

(inner.inclusive_min() == -kInfIndex || inner.inclusive_min() >= outer.inclusive_min()) && (inner.inclusive_max() == kInfIndex || inner.inclusive_max() <= outer.inclusive_max()).