bsl::operator==

Return whether the specified stacks have the same value; see the non-member operator== in the bsl namespace.

Synopsis

Declared in <bslstl_stack.h>

template<
    class VAL,
    class CONT>
bool
operator==(
    stack<VAL, CONT> const& lhs,
    stack<VAL, CONT> const& rhs);

NOTE

This function is a hidden friend of stack, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

true if the stacks have the same value, false otherwise

Parameters

NameDescription
lhsleft-hand stack operand
rhsright-hand stack operand