OptrisOptrisDocumentation

Documentation/OTC SDK/OTC SDK — C++ API referencev12.0

optris::sdk::Unexpected

The error arm on its own, so it can be returned where an Expected is wanted. std::expected's counterpart is std::unexpected.

Public types

error_type

E error_type

The error type being carried.

Public functions

Unexpected

constexpr Unexpected(E error)

Parameters

Name Description
error The error to carry into an Expected.

error

constexpr const E & error() const &noexcept

Returns: The carried error.

error

constexpr E && error() &&noexcept

Returns: The carried error, moved out.