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

7.2.2 Constructors

constexpr kaucher_interval() = default; 
constexpr kaucher_interval(const T& a, const T& b); 
constexpr kaucher_interval(const T a[2]); 
constexpr kaucher_interval(const T v); 
constexpr kaucher_interval(const kaucher_interval<T>& o) = default; 
constexpr kaucher_interval(const std::pair<T,T>& p); 
constexpr kaucher_interval(const interval<T>& o);

These are the constructors of the kaucher_interval<T> class. All constructors with the constexpr declaration specifier are implemented in inline.

kaucher_interval()


Default constructor, leaves infinimum and supremum uninitialized.

kaucher_interval(const kaucher_interval<T>&)


Default copy constructor.

kaucher_interval(const T&, const T&) and kaucher_interval(const T a[2])


Assignment constructor, assigns infinimum and supremum to the first and second argument respectively.

kaucher_interval(const T&)


Assignment constructor, initializes the interval as a singleton of the given value.

kaucher_interval(std::pair<T,T> &)


Assignment constructor, initializes the infinimum and supremum to the first and second value of the std::pair, respectively.

kaucher_interval(const interval<T>&)


Assignment constructor, initializes a Kaucher interval from a classic interval.