bsl::operator<=>

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

Synopsis

Declared in <bslstl_deque.h>

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

Description

Perform a lexicographic three-way comparison of the specified lhs and the specified rhs containers by using the comparison operators of VALUE_TYPE on each element; return the result of that comparison.

Return Value

result of the three-way comparison

Parameters

NameDescription
lhsleft-hand deque to compare
rhsright-hand deque to compare