Boost logo

Boost :

From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-08-16 10:50:30


Andy Glew wrote:

> Typically this would be done inside an iterator:
> begin(), end(), ++, --, [], etc.
>
> As usual, I am lazy, and would prefer not to have to code up all of
> the iterator access methods - but I don't see anything like
> "iterator hooks".

There is:

http://www.eleves.ens.fr:8080/home/bonnard/NewLibs/Utils/iterators_utils.H

You define pre++, pre-- and *, you get post++, post--, and ->.

There is also the comparison utilities, which give you >, >=,
<=, != with just == and <.

All these utilities you get into boost.

-- 
Valentin Bonnard

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk