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

9.2.4 Conversion functions

std::pair<T,T> as_pair() const; 
interval<T> as_interval() const; 
kaucher_interval<T> as_kaucher_interval() const;

These member functions convert the current instance of the pair<T> class into other formats.

as_pair()


Convert the current interval to a std::pair with the first and second members set to the main- and remainder value, respectively.

as_interval()


Convert the pair to a classic interval.

as_kaucher_interval()


Convert the pair to a kaucher interval.