Intersection


Return range which equals to intersection of two ranges. nval defines a value used to specify "no limit" special value. If ranges are not intersected, returns TRange{ nval, nval }.

template<class TYPE>
TRange<TYPE> Intersection(const TRange<TYPE> &a, const TRange<TYPE> &b, const TYPE nval);
template<class TYPE>
TRange<TYPE> Intersection(const TRange<TYPE> &a, const TRange<TYPE> &b, const TYPE nval, const TYPE relative_tolerance);
Namespace: ntl
Include: NTL/Core/Range.h