dimanche 8 décembre 2019

About developing own iterator for a vector of classes in cpp

class CricketData : public Subject {
    std::vector<Observer *> obs;        
public:    
    class Iterator
    {

    };

    Iterator begin()
    {

    }
};

I am trying to develop my own iterator to iterate through obs in the above mentioned fashion. Can anyone help me with this?

Aucun commentaire:

Enregistrer un commentaire