-
#include "tensorstore/index_interval.h"
-
static constexpr bool
tensorstore::IndexInterval::ValidClosed(Index inclusive_min,
Index inclusive_max); Returns
true
ifinclusive_min
andinclusive_max
specify a valid closed interval.- Returns:¶
inclusive_min >= -kInfIndex && inclusive_min<kInfIndex && inclusive_max> - kInfIndex && inclusive_max >= inclusive_min - 1 && inclusive_max <= kInfIndex
.