Boost C++ Libraries 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.

Struct template interval_traits



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

template<typename Type> 
struct interval_traits {
  // types
  typedef interval_traits              type;       
  typedef domain_type_of< Type >::type domain_type;

  // public static functions
  static Type construct(const domain_type &, const domain_type &);
  static domain_type upper(const Type &);
  static domain_type lower(const Type &);


interval_traits public static functions

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