template<class T, class U> bool operator==(const pair<T, U>& x, const pair<T, U>& y);
The template function returns x.first == y.first && x.second == y.second.
x.
first
== y.first && x.
second
== y.second
See the related sample program.