...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_traits<icl::continuous_interval< DomainT, Compare >>
// In header: <boost/icl/continuous_interval.hpp> template<typename DomainT, ICL_COMPARE Compare> struct interval_traits<icl::continuous_interval< DomainT, Compare >> { // types typedef interval_traits type; typedef DomainT domain_type; typedef icl::continuous_interval< DomainT, Compare > interval_type; // public member functions typedef ICL_COMPARE_DOMAIN(Compare, DomainT); // public static functions static interval_type construct(const domain_type &, const domain_type &); static domain_type lower(const interval_type &); static domain_type upper(const interval_type &); };