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

9.2.8 Arithmetic Operators

pair<T> operator-() const; 
 
pair<T> operator+(const pair<T>& o) const; 
pair<T> operator-(const pair<T>& o) const; 
pair<T> operator*(const pair<T>& o) const; 
pair<T> operator/(const pair<T>& o) const; 
 
pair<T>& operator+=(const pair<T>& o); 
pair<T>& operator-=(const pair<T>& o); 
pair<T>& operator*=(const pair<T>& o); 
pair<T>& operator/=(const pair<T>& o); 
 
pair<T> operator+(const T o) const; 
pair<T> operator-(const T o) const; 
pair<T> operator*(const T o) const; 
pair<T> operator/(const T o) const; 
 
pair<T>& operator+=(const T o); 
pair<T>& operator-=(const T o); 
pair<T>& operator*=(const T o); 
pair<T>& operator/=(const T o);

These operators execute the respective equivalent C++ standard arithmetic operation on the pair<T>.