Compare an optional object with a value for inequality.
Declared in <bslstl_optional.h>
template<
class t_LHS_TYPE,
class t_RHS_TYPE>
constexpr
bool
operator!=(
t_LHS_TYPE const& lhs,
bsl::optional<t_RHS_TYPE> const& rhs);
true if lhs and rhs do not have the same value, and false otherwise
| Name | Description |
|---|---|
| lhs | left-hand operand |
| rhs | right-hand operand |