mardi 22 septembre 2015

C++11: Storing an iterator without knowing it's container

I want to write a class ItrPair<T> which stores two iterators pointing start , end to an std containers which stores elements of type T.

Is it possible for ItrPair to not know what type of container start and end stem from but only know what datatypes they are pointing to?

Aucun commentaire:

Enregistrer un commentaire