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.