[#bsl-operator_3way-03e] = xref:bsl.adoc[bsl]::operator<=> :relfileprefix: ../ :mrdocs: Return the three‐way comparison of the specified stacks; see the non‐member `operator<=>` in the `bsl` namespace. == Synopsis Declared in `<bslstl_stack.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VAL, three_way_comparable CONT> compare_three_way_result_t<CONT> operator<=>( xref:bsl/stack-05.adoc[stack<VAL, CONT>] const& lhs, xref:bsl/stack-05.adoc[stack<VAL, CONT>] const& rhs); ---- [NOTE] ==== This function is a https://en.cppreference.com/w/cpp/language/friend[hidden friend] of xref:bsl/stack-05.adoc[stack], declared only inside that class: it can be found only through argument-dependent lookup. ==== == Return Value result of the three‐way comparison == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | left‐hand stack operand | *rhs* | right‐hand stack operand |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#