| Home | Libraries | People | FAQ | More

## Class template left_open_interval

boost::icl::left_open_interval

## Synopsis

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

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

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

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

## Description

### `left_open_interval` public construct/copy/destruct

1.     left_open_interval();

   Default constructor; yields an empty interval `(0,0]`.

2.     explicit left_open_interval(const DomainT & val);

   Constructor for a left-open singleton interval `(val-1,val]`

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

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

### `left_open_interval` public member functions

1.     DomainT lower() const;

2.     DomainT upper() const;