Writing wrappers around stl classes with iterators in c?

I wouldn't write a wrapper for std::vector and std::list in this case for the sole purpose of using std::list or std::vector uniformly. You don't need to. What you want is to use type erasure in a similar way to what you can find here .

MyCollection::begin should return a MyCollection::iterator, by convention. Therefore MyVector::begin() should return something that's at least a MyCollection::iterator, too. It may be a more derived type, though.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions