TensorStore
tensorstore::GetStaticOrDynamicExtent
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
        • Key-value storage
        • Downsampling
        • Utilities
          • Cspan
            • Types
            • Data members
            • Constructors
            • Methods
            • Related Constants
            • Related Functions
              • FGetStaticOrDynamicExtent
              • Foperator<<
          • CUtf8String
          • CSmallBitSet
          • CMaybeHardConstraintSpan
          • CMaybeHardConstraintIndex
          • VIsCompatibleOptionSequence
          • Error handling
          • Asynchronous support
          • JSON serialization
          • Compile-time data type/rank/mode constraints
          • String Utilities
          • Index vectors
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    #include "tensorstore/util/span.h"
    template <typename X, ptrdiff_t N>
    std::integral_constant<ptrdiff_t, N>
    tensorstore::GetStaticOrDynamicExtent(span<X, N>);
    template <typename X>
    ptrdiff_t tensorstore::GetStaticOrDynamicExtent(span<X> s);

    Returns the size of span as an std::integral_constant or DimensionIndex.

    The result is a valid StaticOrDynamicRank value.

    Back to top
    Previous tensorstore::dynamic_extent
    Next tensorstore::operator<<[span]