17template <
class C,
class S =
size_t>
31template <
class C,
class S>
34 os <<
"[" << aRange.
start <<
"," << aRange.
end <<
")";
38template<
class C,
class S>
41template<
class C,
class S>
44template<
class C,
class S>
52template<
class C,
class S>
56 return (start <= value && value <= end);
59template<
class C,
class S>
63 return (S) (end > start ? end - start : 0);
std::ostream & operator<<(std::ostream &os, Range< C, S > const &aRange)
bool contains(C const &) const
Range intersection(Range const &) const
A const & max(A const &lhs, A const &rhs)
A const & min(A const &lhs, A const &rhs)