bsl::operator<=>

Perform a lexicographic three-way comparison of lhs and rhs.

Synopsis

Declared in <bslstl_list.h>

template<
    class VALUE,
    class ALLOCATOR>
BloombergLP::bslalg::SynthThreeWayUtil::Result<VALUE>
operator<=>(
    list<VALUE, ALLOCATOR> const& lhs,
    list<VALUE, ALLOCATOR> const& rhs);

Description

Compare using the comparison operators of VALUE on each element; return the result of that comparison.

Return Value

result of the three-way comparison

Parameters

NameDescription
lhsfirst list to compare
rhssecond list to compare