beman::optional::operator==

Compares an optional against nullopt.

Synopsis

Declared in <beman/optional/optional.hpp>

template<class T>
constexpr
bool
operator==(
    optional<T> const& lhs,
    nullopt_t rhs) noexcept;

Return Value

true if lhs is disengaged.

Parameters

NameDescription
lhsThe optional to test.
rhsThe nullopt operand.