$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: scleary_at_[hidden]
Date: 2002-08-21 21:00:11
Dave (& other Boosters) -
I've just thrown together a simple Iterator Adaptor example. It defines two
iterators -- not iterator generators. It's for iterating over a C-style
string, and can be constructed from a char pointer.
The first version is a simple, minimal example that works, but has a
singular value for the default constructor (an "end of string" marker is
constructed by passing a 0). The second version is a little more complex,
using iterator_adaptor twice to make the "end of string" marker from the
default constructor.
I thought it might be workable as a tutorial or beginning example.
-Steve
P.S. Excellent work; this is the first time I've actually used
iterator_adaptor and I found it much easier than I was expecting! :)