[Mono-list] STL in .net

James Berry james@adastra.co.uk
Thu, 6 Jun 2002 11:40:21 +0100


> Yes, I know... its dificult to leave the past, but I feel 
> .Net does'nt have a good Iterator interface where you can go foward
and 
> backward in a collection. Worst, your enumerator become invalid when
you 
> add or remove items from a collection.

Eric Gunnerson (microsoft) has provided some nice examples of how to
user iterators for isolated access (adding and removing items), as well
as using foreach in reverse, on sub-lists, and in sorted order.

Here's the source.

http://www.gotdotnet.com/userfiles/ericgu/iter.zip

Best wishes
James