18#ifndef __LIBSTD_ITERATOR_H
19#define __LIBSTD_ITERATOR_H
Abstracts an iteration process.
virtual bool remove()=0
Remove the current item from the underlying Container.
virtual void operator++(int num)=0
Increment operator.
virtual bool hasNext() const =0
Check if there is more to iterate.
virtual T & next()=0
Fetch the next item modifiable.
virtual void reset()=0
Restart iteration from the beginning.
virtual const T & current() const =0
Get the current item read-only.
virtual bool hasCurrent() const =0
Check if there is a current item.
virtual ~Iterator()
Destructor.
virtual T & current()=0
Get the current item modifiable.