constexpr interval() = default; constexpr interval(const T& a, const T& b); constexpr interval(const T a[2]); constexpr interval(const T v); constexpr interval(const interval<T>& o) = default; constexpr interval(const std::pair<T,T>& p);
These are the constructors of the interval<T> class. All constructors with the constexpr declaration specifier are implemented in inline.
Default constructor, leaves infinimum and supremum uninitialized.
Default copy constructor.
Assignment constructor, assigns infinimum and supremum to the first and second argument respectively.
Assignment constructor, initializes the interval as a singleton of the given value.
Assignment constructor, initializes the infinimum and supremum to the first and second value of the std::pair,
respectively.