Return whether the operands have the same value.
Declared in <bslstl_stack.h>
template<
class VALUE,
class CONTAINER>
bool
operator==(
stack<VALUE, CONTAINER> const& lhs,
stack<VALUE, CONTAINER> const& rhs);
Return true if the specified lhs and rhs objects have the same value, and false otherwise. Two stack objects lhs and rhs have the same value if they have the same number of elements, and each element in the ordered sequence of elements of lhs has the same value as the corresponding element in the ordered sequence of elements of rhs. This method requires that the (template parameter) type VALUE be equality-comparable (see {Requirements on VALUE}).
true if the stacks have the same value, false otherwise
| Name | Description |
|---|---|
| lhs | left-hand stack operand |
| rhs | right-hand stack operand |