Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-07-25 15:46:40


Hi Everyone,

Have you tried to use iterator adaptors and found the documentation
wanting? I have recently updated the documentation in the CVS:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/boost/boost/libs/
utility/iterator_adaptors.htm?rev=HEAD

However, enough people have had problems approaching this library that I
thought it would be useful to ask about what would make a gentle
introductory example. Beman recently sent me the enclosed, but it seems to
define such an oddball toy iterator that I'm not sure it would be a very
good motivating example. I'm asking for input, especially from anyone who
has "gotten over the hump" so to speak, with iterator adaptors.

TIA,
Dave

           ---------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com

----- Original Message -----
From: "Beman Dawes" <bdawes_at_[hidden]>
To: "Dave Abrahams" <david.abrahams_at_[hidden]>
Cc: "Jeremy Siek" <jsiek_at_[hidden]>
Sent: Thursday, July 25, 2002 3:21 PM
Subject: Iterator adaptor example

> Dave,
>
> Thanks for fixing the docs. I fixed and committed to CVS one more change
> of BaseType -> Base.
>
> I found I needed an even more basic example than anything in the docs to
> play with, particularly for creating an iterator from scratch, and put
> together the attached.
>
> It is very simple, and does not demonstrate advanced features, but it
> answered newbie questions I had in a way that only running code,
modifying
> it, and running again can do. (Not to mention fixing all the errors I
made
> before it would compile!)
>
> Feel free to include it in the distribution if you think it would help
> others. Needs a better name of course.
>
> --Beman




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