Stable Numerics Subroutine Library
Programming Reference Manual
Version 1.1 DD-00006-011

5.2.7 Arithmetic Operators

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

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