bsl::operator<=>

Return the three-way comparison result of the specified lhs and rhs stacks by comparing their underlying containers.

Synopsis

Declared in <bslstl_stack.h>

template<
    class VALUE,
    three_way_comparable CONTAINER>
compare_three_way_result_t<CONTAINER>
operator<=>(
    stack<VALUE, CONTAINER> const& lhs,
    stack<VALUE, CONTAINER> const& rhs);

Return Value

result of the three-way comparison

Parameters

NameDescription
lhsleft-hand stack operand
rhsright-hand stack operand