Stable Numerics Subroutine Library
Programming Reference Manual
Version 1.2 DD-00006-012

9.2.5 Comparison Operators

bool operator==(const pair<T>& o) const; 
bool operator!=(const pair<T>& o) const; 
bool operator==(const std::pair<T,T>& o) const; 
bool operator!=(const std::pair<T,T>& o) const;

These operators check the equality or inequality of the current pair object to another pair object.

The version of the std::pair assumes the first element contains the main part and second part contains the remainder.