operator!=

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

The template function returns !(lhs == rhs).