Stable Numerics Subroutine Library
Programming Reference Manual
Version 1.0 DD-00006-010
5.2.3 Assignment
constexpr interval<T>& operator=(const interval<T>&) = default;
interval<T>& operator=(const std::pair<T,T>& o);

interval<T>& set_midpoint(const T& mid, const T& error);
interval<T>& set_range(const T& i, const T& s);
interval<T>& set_range(const std::pair<T,T>& p);

These member functions assign the infinimum and supremum of the interval.

operator=(const interval<T>&)


Standard one-to-one assignment.

operator=(const std::pair<T,T>&) and set_range(const std::pair<T,T>& p)


Assigns the infinimum to the first element, and the supremum to the second element of the std::pair.

set_midpoint(const T& mid, const T& error)


Assign the infinimum to mid-|error| the supremum to mid+|error|.

set_range(const T& i, const T& s)


Assign the infinimum and supremum from the given first and second argument, respectively.