Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template< typename T >
- class Iterator
- {
- public:
- Iterator& operator ++();
- Iterator& operator --();
- // Things like vectors would more +/- operators, but linked lists don't.
- bool operator == ();
- // And probably more.
- private:
- T* ptr;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement