Three‐way comparison operator

Synopsis

Declared in <beman/transform_view/transform_view.hpp>

constexpr
auto
operator<=>(
    iterator const& x,
    iterator const& y)
requires std::ranges::random_access_range<Base> &&
                     std::three_way_comparable<std::ranges::iterator_t<Base> >;

Return Value

The relative order of the objects

Parameters

Name

Description

x

The left operand

y

The right operand