Name

operator== function template — Compares stacks for equality

Synopsis

template <typename T, typename Container>
bool operator==(const stack<T, Container>& x, const stack<T, Container>& y);

The == operator compares two stacks for equality by comparing the adapted containers (e.g., the return value is x.c == y.c).