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