Re: STL algorithms and NSEnumerator/NSFastEnumeration

2011-10-31 Thread Andreas Grosam
On Oct 29, 2011, at 9:06 PM, Kelvin Chung wrote: > I have this Objective-C container which I want to use in an algorithm that > only takes STL iterators. Is there a generic adapter for NSEnumerator or > id that will provide appropriate STL iterators? I don't think there is, and there are two

STL algorithms and NSEnumerator/NSFastEnumeration

2011-10-29 Thread Kelvin Chung
I have this Objective-C container which I want to use in an algorithm that only takes STL iterators. Is there a generic adapter for NSEnumerator or id that will provide appropriate STL iterators? Also, is there a way to tell the difference between two NSEnumerators (a la STL iterator differenc