Group: comp.lang.c++
From: Christian Hackl
Date: Thursday, November 29, 2007 1:49 PM
Subject: Re: Understanding how to design STL-compatible iterators

Noah Roberts wrote:

> Christian Hackl wrote:
>>
>> I'm having some troubles trying to teach myself how to design my own
>> iterator classes for use in STL algorithms.
>
> Instead of doing it that way you can use the boost::iterator library to
> make the construction of std compliant iterators much easier.

Thanks for the hint. Strange enough, I didn't even think about using
Boost for this.

Still, I'd be very interested in some more theoretical background, as
explained in my previous posting. After all, as I take it, the Boost
Iterator Library is built upon facilites (or concepts, at least) that
are already present in the standard library, so if I don't understand
them I won't really understand how Boost iterators work, either.


--
Christian Hackl

Safety Articles | Usenet Groups | Usenet News | Bluegrass