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 to view this page for the latest version.
PrevUpHomeNext

Struct template interval

boost::icl::interval

Synopsis

// 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 &);
};

Description

interval public static functions

  1. static interval_type right_open(const DomainT & low, const DomainT & up);
  2. static interval_type left_open(const DomainT & low, const DomainT & up);
  3. static interval_type open(const DomainT & low, const DomainT & up);
  4. static interval_type closed(const DomainT & low, const DomainT & up);
  5. static interval_type construct(const DomainT & low, const DomainT & up);

PrevUpHomeNext