mrdocs::operator<=>

Performs a three‐way comparison between an Optional and std::nullopt. Returns std::strong_ordering::greater if engaged, std::strong_ordering::equal if disengaged.

Synopsis

Declared in <mrdocs/ADT/Optional.hpp>

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

Return Value

The result of the three‐way comparison with std::nullopt.

Parameters

Name Description

x

The left operand

rhs

The right operand

Created with MrDocs