litert::Unexpected

#include <litert_expected.h>

A utility for generic return values that represents a failure.

Summary

Constructors and Destructors

Unexpected(Status status, std::string message)
Unexpected(LiteRtStatus status, std::string message)
Unexpected(First && first, Rest &&... rest)
Unexpected(class Error && e)
Allows for implicit conversion from a convertible Error value in-place.
Unexpected(Unexpected && other)
Unexpected(const Unexpected & other)

Public functions

Error() const &noexcept
constexpr const class Error &
Error()&noexcept
constexpr class Error &
Error() const &&noexcept
constexpr const class Error &&
Error()&&noexcept
constexpr class Error &&
operator=(Unexpected && other)=default
operator=(const Unexpected & other)=default

Friend classes

AbslStringify
friend void

Public functions

Error

constexpr const class Error & Error() const &noexcept

Error

constexpr class Error & Error()&noexcept

Error

constexpr const class Error && Error() const &&noexcept

Error

constexpr class Error && Error()&&noexcept

Unexpected

 Unexpected(
  Status status,
  std::string message
)

Unexpected

 Unexpected(
  LiteRtStatus status,
  std::string message
)

Unexpected

constexpr Unexpected(
  First && first,
  Rest &&... rest
)

Unexpected

 Unexpected(
  class Error && e
)

Allows for implicit conversion from a convertible Error value in-place.

Unexpected

 Unexpected(
  Unexpected && other
)=default

Unexpected

 Unexpected(
  const Unexpected & other
)=default

operator=

Unexpected & operator=(
  Unexpected && other
)=default

operator=

Unexpected & operator=(
  const Unexpected & other
)=default

Friend classes

AbslStringify

friend void AbslStringify(Sink &sink, const Unexpected &unexpected)