litert:: Expected< void >
Summary
Public functions |
|
|---|---|
Error() const &
|
const class Error &
Observer for
Unexpected. |
Error()&
|
class Error &
|
Error() const &&
|
const class Error &&
|
Error()&&
|
class Error &&
|
Expected()
|
Implicit construction is used to simplify returning a valid value (e.g.,
return {};). |
Expected(const Unexpected & err)
|
Constructs from an
Unexpected object in-place. |
Expected(Unexpected && err)
|
|
Expected(const Error & e)
|
Allows for implicit conversion from
Error. |
HasValue() const
|
bool
Checks if this
Expected contains a T value. |
operator bool() const
|
Converts to
bool for HasValue. |
Public functions
Error
const class Error & Error() const &
Observer for Unexpected.
The program exits if it doesn't have one.
Error
class Error & Error()&
Error
const class Error && Error() const &&
Error
class Error && Error()&&
Expected
Expected()
Implicit construction is used to simplify returning a valid value (e.g., return {};).
Expected
Expected( Unexpected && err )
HasValue
bool HasValue() const
Checks if this Expected contains a T value.
If not, it contains an Unexpected.
operator bool
operator bool() const
Converts to bool for HasValue.