sincerely
Singaporean
If you have not done so, read this full tutorial on how to use SGEXTN to build an application.
(no source file, everything inside header)
template ‹typename K, typename V, typename Comparator› class SGLMap::Iterator;
part of SGEXTN module SG_Containers
iterator for SGLMap
list of all including inherited members
preprocessor file inclusion directive: #include ‹SGLMap.h›
CMake target for BuildLah: SGEXTN::SG_Containers
see this link for more information about BuildLah
parent class: (none)
children classes: (none)
const K& key();
bool operator!=(SGLMap::Iterator x);
SGLMap::Iterator& operator++();
SGLMap::Iterator operator++(int);
SGLMap::Iterator operator--(int);
SGLMap::Iterator& operator--();
bool operator==(SGLMap::Iterator x);
V& value();
SGLMap::Iterator is a iterator for SGLMap and points towards a key value pair in the SGLMap. This can be used to iterate over the SGLMap sequentially. If you do not need to modify the SGLMap while iterating, use SGLMap::ConstIterator instead. This is a template based class with no separate source file.
SGLMap::Iterator stores a pointer to the memory location where SGLMap keeps all its data.
Returns the key in the key value pair that this iterator points to.
If this iterator is SGLMap::end, using this function will crash.
Checks if this iterator points to a different key value pair from x.
Increments the iterator to point towards the next key value pair and returns the new iterator.
SGLMap::Iterator is circular, incrementing SGLMap::end gives SGLMap::begin and decrementing SGLMap::begin gives SGLMap::end.
Increments the iterator to point towards the next key value pair and returns the old iterator.
SGLMap::Iterator is circular, incrementing SGLMap::end gives SGLMap::begin and decrementing SGLMap::begin gives SGLMap::end.
Decrements the iterator to point towards the previous key value pair and returns the old iterator.
SGLMap::Iterator is circular, incrementing SGLMap::end gives SGLMap::begin and decrementing SGLMap::begin gives SGLMap::end.
Decrements the iterator to point towards the previous key value pair and returns the new iterator.
SGLMap::Iterator is circular, incrementing SGLMap::end gives SGLMap::begin and decrementing SGLMap::begin gives SGLMap::end.
Checks if this iterator points to the same key value pair as x.
Returns a reference to the value in the key value pair that this iterator points to.
This returns a reference and not a copy. Assigning to the returned reference (using it as a lvalue) modifies the SGLMap.
If this iterator is SGLMap::end, using this function will crash.
©2025 05524F.sg (Singapore)