Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Struct template interval_traits<icl::open_interval< DomainT, Compare >>

boost::icl::interval_traits<icl::open_interval< DomainT, Compare >>

Synopsis

// In header: <boost/icl/open_interval.hpp>

template<typename DomainT, ICL_COMPARE Compare> 
struct interval_traits<icl::open_interval< DomainT, Compare >> {
  // types
  typedef DomainT                                domain_type;  
  typedef icl::open_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 &);
};

Description

interval_traits public member functions

  1. typedef ICL_COMPARE_DOMAIN(Compare, DomainT);

interval_traits public static functions

  1. static interval_type construct(const domain_type & lo, const domain_type & up);
  2. static domain_type lower(const interval_type & inter_val);
  3. static domain_type upper(const interval_type & inter_val);

PrevUpHomeNext