Boost logo

Boost :

From: jsiek_at_[hidden]
Date: 1999-11-26 16:20:33

So just like numeric types, there is a core set of iterator
operations that can be used to implement the rest of the iterator
operations. Here's the core set:

// value_type operator*();
// self& operator++();
// self& operator--();
// self& operator+=(Distance n);
// self& operator-=(Distance n);
// friend Distance operator-(const self& x, const self& y);
// friend bool operator==(const self& x, const self& y);
// friend bool operator<(const self& x, const self& y);

I'll clean up my current implementation and mail it later today.

Beman Dawes writes:
> At 04:10 PM 11/26/99 -0500, jsiek_at_[hidden] wrote:
> >Hello,
> >
> >Just realized that I've been using the same principle behind
> >boost::operators to make the definition of all iterator operations
> >easier. Would there be an interest for an iterator_ops class?
> >
> >Cheers,
> >
> >Jeremy
> I think so. Tell us more.
> --Beman

Boost list run by bdawes at, gregod at, cpdaniel at, john at