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