mrdocs::operator==

Checks if the Optional is disengaged (equal to std::nullopt). Returns true if the Optional does not contain a value.

Synopsis

Declared in <mrdocs/ADT/Optional.hpp>

template<typename T>
[[nodiscard]]
constexpr
bool
operator==(
    Optional<T> const& lhs,
    std::nullopt_t rhs) noexcept;

Return Value

true if the optional is disengaged; otherwise, false.

The return value should not be discarded.

Parameters

Name

Description

lhs

The left operand

rhs

The right operand

Created with MrDocs