![]() |
nCine 2025.07.r505-7e70e87
A cross-platform 2D game engine
|
#include <ListIterator.h>
Public Types | |
using | Reference = typename IteratorTraits< ListIterator >::Reference |
Reference type which respects iterator constness. | |
Public Member Functions | |
ListIterator (ListNode< T > *node) | |
ListIterator (const ListIterator< T, false > &it) | |
Copy constructor to implicitly convert a non constant iterator to a constant one. | |
Reference | operator* () const |
Deferencing operator. | |
ListIterator & | operator++ () |
Iterates to the next element (prefix) | |
ListIterator | operator++ (int) |
Iterates to the next element (postfix) | |
ListIterator & | operator-- () |
Iterates to the previous element (prefix) | |
ListIterator | operator-- (int) |
Iterates to the previous element (postfix) | |
Friends | |
class | List< T > |
class | ListIterator< T, true > |
For non constant to constant iterator implicit conversion. | |
bool | operator== (const ListIterator &lhs, const ListIterator &rhs) |
Equality operator. | |
bool | operator!= (const ListIterator &lhs, const ListIterator &rhs) |
Inequality operator. | |