
12 Oct
2009
12 Oct
'09
6:05 p.m.
AMDG Swerts, Benjamin wrote:
I'm trying to create a base class that provides 2 iterators (begin/end). These will be used to iterate over data structures that will be provided by subclasses. These data structures are completely unrelated. Normally this can be solved using virtual functions but the problem is that iterators are normally returned by value so I cannot go that route.
Look at Adobe's any_iterator http://stlab.adobe.com/classadobe_1_1any__iterator.html In Christ, Steven Watanabe