-
#include "tensorstore/index_interval.h" - constexpr Index tensorstore::IndexInterval::size() const;
Returns the size of the interval.
If
inclusive_min() == -kInfIndexandinclusive_max() == +kInfIndex, this returnskInfSize(as might be expected). However, ifinclusive_min() == -kInfIndexandinclusive_max() < +kInfIndex, orinclusive_min() > -kInfIndexandinclusive_max() == +kInfIndex, this returns a value less thankInfSize, even though the size is still logically unbounded.- Invariant:¶
- Invariant:¶
inclusive_min() + size() == exclusive_max()