| Home | Libraries | People | FAQ | More

## Class template right_open_interval

boost::icl::right_open_interval

## Synopsis

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

    template<typename DomainT,
             ICL_COMPARE Compare = ICL_COMPARE_INSTANCE(std::less, DomainT)>
    class right_open_interval {
    public:
      // types
      typedef right_open_interval< DomainT, Compare > type;
      typedef DomainT                                 domain_type;

      // construct/copy/destruct
      right_open_interval();
      explicit right_open_interval(const DomainT &);
      right_open_interval(const DomainT &, const DomainT &);

      // public member functions
      domain_type lower() const;
      domain_type upper() const;
    };

## Description

### `right_open_interval` public construct/copy/destruct

1.     right_open_interval();

   Default constructor; yields an empty interval `[0,0)`.

2.     explicit right_open_interval(const DomainT & val);

   Constructor for a singleton interval `[val,val+1)`

3.     right_open_interval(const DomainT & low, const DomainT & up);

   Interval from `low` to `up` with bounds `bounds`

### `right_open_interval` public member functions

1.     domain_type lower() const;

2.     domain_type upper() const;