TensorStore
tensorstore::ModeCast[compile_time]
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
        • Key-value storage
        • Downsampling
        • Utilities
          • C span
          • C Utf8String
          • C SmallBitSet
          • C MaybeHardConstraintSpan
          • C MaybeHardConstraintIndex
          • V IsCompatibleOptionSequence
          • Error handling
          • Asynchronous support
          • JSON serialization
          • Compile-time data type/rank/mode constraints
            • E CastChecking
            • C unchecked_t
            • V IsStaticCastConstructible
            • T StaticCastResultType
            • F StaticCast
            • T RebindRank
            • F StaticRankCast
            • T RebindDataType
            • F StaticDataTypeCast
            • F ConstDataTypeCast
            • T RebindMode
            • F ModeCast
          • String Utilities
          • Index vectors
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    #include "tensorstore/tensorstore.h"
    template <ReadWriteMode TargetMode,
              CastChecking Checking = CastChecking::checked,
              typename SourceRef>
    StaticCastResultType<RebindMode<SourceRef, TargetMode>,
                         SourceRef,
                         Checking>
    tensorstore::ModeCast(SourceRef&& source);

    Casts source to have a static ReadWriteMode of TargetMode.