bsl::operator<=>

Perform a three-way comparison of the operands.

Synopsis

Declared in <bslstl_vector.h>

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

Description

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

Return Value

result of the lexicographic three-way comparison

Parameters

NameDescription
lhsleft-hand operand
rhsright-hand operand