Skip to content
TensorStore
tensorstore::GetStatus[result]
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
            • DTENSORSTORE_RETURN_IF_ERROR
            • DTENSORSTORE_CHECK_OK
            • FMaybeAnnotateStatus
            • CResult
              • Types
              • Constructors
              • Methods
              • Friend functions
              • Related Macros
              • Test support
              • Related Functions
                • FGetStatus [status]
                • FMakeResult [value]
                • FMakeResult [status]
                • FGetStatus [result]
                  • Returns
                • FUnwrapResult
                • FMapResult
                • FChainResult
              • Related Constants
              • Related Types
          • 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
    • Returns
    #include "tensorstore/util/result.h"
    template <typename T>
    absl::Status tensorstore::GetStatus(const Result<T>& result);
    template <typename T>
    absl::Status tensorstore::GetStatus(Result<T>&& result);

    Returns the error status of Result, or absl::OkStatus() if Result has a value.

    Returns:¶

    result.status()

    Back to top
    Previous tensorstore::MakeResult[status]
    Next tensorstore::UnwrapResult