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

Synopsis

Declared in <bslstl_stack.h>

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

Return Value

true if the stacks have the same value, false otherwise

Parameters

Name

Description

lhs

left‐hand stack operand

rhs

right‐hand stack operand

Created with MrDocs