22 #ifndef ELM_INDEXED_ITERATOR_H
23 #define ELM_INDEXED_ITERATOR_H
25 #include <elm/PreIterator.h>
30 template <
class I,
class T,
class C>
39 inline bool ended(
void) {
return i >= c->size(); }
40 inline const T&
item(
void)
const {
return (*c)[i]; }
41 inline void next(
void) { i++; }
50 #endif // ELM_INDEXED_ITERATOR_H
Definition: PreIterator.h:29
const T & item(void) const
Definition: IndexedIterator.h:40
IndexedIterator(const this_t &iter)
Definition: IndexedIterator.h:36
this_t & operator=(const this_t &iter)
Definition: IndexedIterator.h:37
IndexedIterator(const C &collection)
Definition: IndexedIterator.h:35
bool ended(void)
Definition: IndexedIterator.h:39
Definition: IndexedIterator.h:31
void next(void)
Definition: IndexedIterator.h:41