sincerely Singaporean

If you have not done so, read this full tutorial on how to use SGEXTN to build an application.

SGLUnorderedSet::Iterator

see header file

(no source file, everything inside header)

template ‹typename T, typename EqualityCheck, typename HashFunction› class SGLUnorderedSet::Iterator;

part of SGEXTN module SG_Containers

iterator for SGLUnorderedSet

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGLUnorderedSet.h›

CMake target for BuildLah: SGEXTN::SG_Containers

see this link for more information about BuildLah

parent class: (none)

children classes: (none)

instance member functions

bool operator!=(SGLUnorderedSet::Iterator x);

const T& operator*();

SGLUnorderedSet::Iterator& operator++();

SGLUnorderedSet::Iterator operator++(int);

SGLUnorderedSet::Iterator operator--(int);

SGLUnorderedSet::Iterator& operator--();

bool operator==(SGLUnorderedSet::Iterator x);

Detailed Description

SGLUnorderedSet::Iterator is a iterator for SGLUnorderedSet and points towards an element in the SGLUnorderedSet. This can be used to iterate over the SGLUnorderedSet sequentially. If you do not need to modify the SGLUnorderedSet while iterating, use SGLUnorderedSet::ConstIterator instead. This is a template based class with no separate source file.

Implementation Details

SGLUnorderedSet::Iterator stores a pointer to the memory location where SGLUnorderedSet keeps all its data.

bool operator!=(SGLUnorderedSet::Iterator x);

Checks if this iterator points to a different element from x.

const T& operator*();

Returns the element that this iterator points to.

If this iterator is SGLUnorderedSet::end, using this function will crash.

SGLUnorderedSet::Iterator& operator++();

Increments the iterator to point towards the next element and returns the new iterator.

SGLUnorderedSet::Iterator is circular, incrementing SGLUnorderedSet::end gives SGLUnorderedSet::begin and decrementing SGLUnorderedSet::begin gives SGLUnorderedSet::end.

SGLUnorderedSet::Iterator operator++(int);

Increments the iterator to point towards the next element and returns the old iterator.

SGLUnorderedSet::Iterator is circular, incrementing SGLUnorderedSet::end gives SGLUnorderedSet::begin and decrementing SGLUnorderedSet::begin gives SGLUnorderedSet::end.

SGLUnorderedSet::Iterator operator--(int);

Decrements the iterator to point towards the previous element and returns the old iterator.

SGLUnorderedSet::Iterator is circular, incrementing SGLUnorderedSet::end gives SGLUnorderedSet::begin and decrementing SGLUnorderedSet::begin gives SGLUnorderedSet::end.

SGLUnorderedSet::Iterator& operator--();

Decrements the iterator to point towards the previous element and returns the new iterator.

SGLUnorderedSet::Iterator is circular, incrementing SGLUnorderedSet::end gives SGLUnorderedSet::begin and decrementing SGLUnorderedSet::begin gives SGLUnorderedSet::end.

bool operator==(SGLUnorderedSet::Iterator x);

Checks if this iterator points to the same element as x.

©2025 05524F.sg (Singapore)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects