TensorStore
tensorstore::kvstore::ReadResult::optional_value
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
      • API reference
        • Core
        • Indexing
        • Data types
        • Array
        • Key-value storage
          • CSpec
          • CKvStore
            • Constructors
            • Methods
            • Data members
            • Friend functions
            • Related Types
              • TDriverPtr
              • TKvStore
              • TKey
              • TValue
              • CReadResult
                • Types
                • Methods
                  • FUnspecified
                  • FMissing
                  • FValue
                  • Faborted
                  • Fnot_found
                  • Fhas_value
                  • Foptional_value
                • Data members
                • Friend functions
              • CTransactionalReadOptions
            • Related Functions
          • CByteRange
          • COptionalByteRangeRequest
          • CStorageGeneration
          • CTimestampedStorageGeneration
          • CKeyRange
        • 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.

    Back to top
    Previous tensorstore::kvstore::ReadResult::has_value
    Next tensorstore::kvstore::ReadResult::state