Skip to content
TensorStore
tensorstore::Future<T>::Future[convert]
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
        • Key-value storage
        • Downsampling
        • Utilities
          • Cspan
          • CUtf8String
          • CSmallBitSet
          • CMaybeHardConstraintSpan
          • CMaybeHardConstraintIndex
          • VIsCompatibleOptionSequence
          • Error handling
          • Asynchronous support
            • TExecutor
            • CPromise
            • CAnyFuture
            • CFuture
              • Types
              • Constructors
                • FFuture [default]
                • FFuture [convert]
                  • Template Parameters
                    • TU
                • FFuture [unwrap]
                • FFuture [status]
                • FFuture [result]
                • FFuture [value]
              • Methods
              • Related Constants
              • Related Types
              • Related Functions
              • Linking
              • Map functions
            • CPromiseFuturePair
            • CWriteFutures
          • 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
    • Template Parameters
      • TU
    #include "tensorstore/util/future.h"
    template <typename U>
      
    requires (!std::is_same_v<U, T>) && IsFutureConvertible<U, T>
    tensorstore::Future<T>::Future(Future<U> x);

    Constructs from a compatible Future.

    Template Parameters:¶
    typename U¶

    The source value type.

    Back to top
    Previous tensorstore::Future<T>::Future[default]
    Next tensorstore::Future<T>::Future[unwrap]