Skip to content
TensorStore
tensorstore::IndexInterval::ValidHalfOpen
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
          • TIndex
          • TDimensionIndex
          • CIndexInterval
            • Constructors
            • Methods
              • FValidClosed
              • FValidHalfOpen
                • Returns
              • FValidSized
              • 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::ValidHalfOpen(Index inclusive_min,
                                              
    Index exclusive_max);

    Returns true if inclusive_min and exclusive_max specify a valid interval.

    Returns:¶

    inclusive_min >= -kInfIndex && inclusive_min<kInfIndex && exclusive_max> - kInfIndex + 1 && exclusive_max >= inclusive_min && exclusive_max <= kInfIndex + 1.

    Back to top
    Previous tensorstore::IndexInterval::ValidClosed
    Next tensorstore::IndexInterval::ValidSized