Standard C++ Library Reference ISO/IEC (VERSION3)
Next
<stack>
Include the STL standard header <stack> to define the template class stack and two
supporting templates.
namespace std {
template<class Ty, class Container>
class stack;
// TEMPLATE FUNCTIONS
template<class Ty, class Container>
bool operator==(const stack<Ty, Container>& left,
const stack<Ty, Container>&);
template<class Ty, class Container>
bool operator!=(const stack<Ty, Container>& left,
const stack<Ty, Container>&);
template<class Ty, class Container>
bool operator<(const stack<Ty, Container>& left,
const stack<Ty, Container>&);
template<class Ty, class Container>
bool operator>(const stack<Ty, Container>& left,
const stack<Ty, Container>&);
template<class Ty, class Container>
bool operator<=(const stack<Ty, Container>& left,
const stack<Ty, Container>&);
template<class Ty, class Container>
bool operator>=(const stack<Ty, Container>& left,
const stack<Ty, Container>&);
};
operator!=
template<class Ty, class Container>
bool operator!=(const stack <Ty, Container>& left,
const stack <Ty, Container>& right);
The template function returns !(left == right).