so i've read that source as to how to make your own iterator. just two questions: is it well-written and accurate, ala, is it worth following? and how does one go about making a const_iterator?
what i'm using it for is my own generic data container which i'm making emulate the STL containers. so that requires that i have an iterator for it, so i can use 'DataStructure::iterator.'
at the core of the data structure is a STL list. at a high-level, the data structure is essentially a list that can hold multiple values for each element and has special sorting functions. but basically, as far as the client is concerned, it functions just like a STL list. as such, i was planning on simply making each datastructure::iterator function call the equivalent list::iterator function(with proper adjustments to make this work though).
also, wth is std::iterator and how do i use it(explained in simple terms please )?
This post has been edited by The Architect 2.0: 23 July 2008 - 07:39 PM