operator!=

template<class T>
    bool operator!=(const T& x, const T& y);
template<class T, class U>
    bool operator!=(const pair<T, U>& x, const pair<T, U>& y);

The template function returns !(x == y).

See the related sample program.