nCine 2025.07.r505-7e70e87
A cross-platform 2D game engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
nctl::ListIterator< T, IsConst > Class Template Reference

A List iterator. More...

#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.
 
ListIteratoroperator++ ()
 Iterates to the next element (prefix)
 
ListIterator operator++ (int)
 Iterates to the next element (postfix)
 
ListIteratoroperator-- ()
 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.
 

Detailed Description

template<class T, bool IsConst>
class nctl::ListIterator< T, IsConst >

A List iterator.


The documentation for this class was generated from the following file: