operator==

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

The template function overloads operator== to compare two objects of template class stack. The function returns lhs.c == rhs.c.

See the related sample program.