...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::icl::interval
// In header: <boost/icl/interval.hpp> template<typename DomainT, ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(ICL_COMPARE_DEFAULT, DomainT)> struct interval { // types typedef interval_type_default< DomainT, Compare >::type interval_type; typedef interval_type type; // public static functions static interval_type right_open(const DomainT &, const DomainT &); static interval_type left_open(const DomainT &, const DomainT &); static interval_type open(const DomainT &, const DomainT &); static interval_type closed(const DomainT &, const DomainT &); static interval_type construct(const DomainT &, const DomainT &); };
interval
public static functionsstatic interval_type right_open(const DomainT & low, const DomainT & up);
static interval_type left_open(const DomainT & low, const DomainT & up);
static interval_type open(const DomainT & low, const DomainT & up);
static interval_type closed(const DomainT & low, const DomainT & up);
static interval_type construct(const DomainT & low, const DomainT & up);