![]() |
nCine 2025.07.r505-7e70e87
A cross-platform 2D game engine
|
A sparseset iterator. More...
#include <SparseSetIterator.h>
Public Types | |
using | Reference = typename IteratorTraits< SparseSetIterator >::Reference |
Reference type which respects iterator constness. | |
Public Member Functions | |
SparseSetIterator (const SparseSet< T > *sparseSet, int index) | |
Reference | operator* () const |
Deferencing operator. | |
SparseSetIterator & | operator++ () |
Iterates to the next element (prefix) | |
SparseSetIterator | operator++ (int) |
Iterates to the next element (postfix) | |
SparseSetIterator & | operator-- () |
Iterates to the previous element (prefix) | |
SparseSetIterator | operator-- (int) |
Iterates to the previous element (postfix) | |
Friends | |
bool | operator== (const SparseSetIterator &lhs, const SparseSetIterator &rhs) |
Equality operator. | |
bool | operator!= (const SparseSetIterator &lhs, const SparseSetIterator &rhs) |
Inequality operator. | |
A sparseset iterator.