The pair less than operator returns true if the second pair argument is less that the first pair argument.
template <class T1, class T2> bool operator < const pair<T1, T2>& x, const pair<T1, T2>& y);