Go to the documentation of this file.
18 #ifndef __LIBSTD_CONSTITERATOR_H
19 #define __LIBSTD_CONSTITERATOR_H
46 virtual void reset() = 0;
53 virtual bool hasNext()
const = 0;
67 virtual const T &
current()
const = 0;
77 virtual const T &
next() = 0;
virtual bool hasCurrent() const =0
Check if there is a current item.
virtual void operator++(int num)=0
Increment operator.
virtual void reset()=0
Restart iteration from the beginning.
Abstracts an iteration process for a constant.
virtual const T & current() const =0
Get the current item read-only.
virtual ~ConstIterator()
Destructor.
virtual const T & next()=0
Fetch the next item.
virtual bool hasNext() const =0
Check if there is more to iterate.