Skip to content
TensorStore
tensorstore::IndexInterval::ValidSized
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
          • TIndex
          • TDimensionIndex
          • CIndexInterval
            • Constructors
            • Methods
              • FValidClosed
              • FValidHalfOpen
              • FValidSized
                • Returns
              • FFiniteRange
              • Foperator-
            • Accessors
            • Friend functions
            • Related Functions
            • Related Types
          • COptionallyImplicitIndexInterval
          • CIndexDomainDimension
          • TInlineRank
          • CRankConstraint
          • CBox
          • TDimensionSet
          • CIndexDomain
          • CIndexTransform
          • VIsIndexArray
          • CDimExpression
          • Alignment
        • Data types
        • Array
        • Key-value storage
        • Downsampling
        • Utilities
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    • Returns
    #include "tensorstore/index_interval.h"
    static constexpr bool
    tensorstore::IndexInterval::ValidSized(Index inclusive_min,
                                           
    Index size);

    Returns true if inclusive_min and size specify a valid interval.

    Returns:¶

    inclusive_min >= -kInfIndex && size >= 0 && size <= kInfSize && inclusive_min<kInfIndex && inclusive_min <= kInfIndex + 1 - size && inclusive_min + size> - kInfIndex + 1.

    Back to top
    Previous tensorstore::IndexInterval::ValidHalfOpen
    Next tensorstore::IndexInterval::FiniteRange