|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-29 08:16:38
----- Original Message -----
From: <nbecker_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, January 29, 2002 8:03 AM
Subject: [boost] Help with iterator helpers
> I'm trying to learn to use iterator helpers, but I need a little
> help. The only example I found I don't understand. Maybe I need a
> more basic example.
>
> I'm trying a simple example. The class "fifo" has a circular buffer
> with seperate read and write pointers. I'd like to implement
> begin_r(), end_r(), begin_w(), and end_w() which will give appropriate
> iterators for read and write.
>
> BTW, here is fifo:
...and your question would be...? ;^)
FWIW, most people find the iterator helpers aren't that useful now that we
have the iterator adaptor library. It does a lot more to automate the job of
making correct and useful iterators.
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk