TensorStore
tensorstore::kvstore::ReadResult::optional_value
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
        • Key-value storage
          • C Spec
          • C KvStore
            • Constructors
            • Methods
            • Data members
            • Friend functions
            • Related Types
              • T DriverPtr
              • T KvStore
              • T Key
              • T Value
              • C ReadResult
                • Types
                • Methods
                  • F Unspecified
                  • F Missing
                  • F Value
                  • F aborted
                  • F not_found
                  • F has_value
                  • F optional_value
                • Data members
                • Friend functions
              • C TransactionalReadOptions
            • Related Functions
          • C ByteRange
          • C OptionalByteRangeRequest
          • C StorageGeneration
          • C TimestampedStorageGeneration
          • C KeyRange
        • Downsampling
        • Utilities
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    #include "tensorstore/kvstore/read_result.h"
    std::optional<absl::Cord>
    tensorstore::kvstore::ReadResult::optional_value() const&;
    std::optional<absl::Cord>
    tensorstore::kvstore::ReadResult::optional_value() &&;

    Returns the value, or std::nullopt if not available.