operator==#
Fully qualified name: omni::operator==
Defined in omni/Expected.h
-
template<typename TValueLhs, typename TErrorLhs, typename TErrorRhs>
constexpr bool omni::operator==( - expected<TValueLhs, TErrorLhs> const &lhs,
- unexpected<TErrorRhs> const &rhs,
Compare the error contents of lhs with rhs.
- Returns:
true
iflhs.has_value() && (lhs.error() == rhs.error())
; the second clause is omitted if the error type isvoid
.