sincerely Singaporean

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

SGLMultiSet::Iterator

see header file

(no source file, everything inside header)

template ‹typename T, typename Comparator› class SGLMultiSet::Iterator;

part of SGEXTN module SG_Containers

iterator for SGLMultiSet

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGLMultiSet.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!=(SGLMultiSet::Iterator x);

const T& operator*();

SGLMultiSet::Iterator& operator++();

SGLMultiSet::Iterator operator++(int);

SGLMultiSet::Iterator& operator--();

SGLMultiSet::Iterator operator--(int);

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

Detailed Description

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

Implementation Details

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

bool operator!=(SGLMultiSet::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 SGLMultiSet::end, using this function will crash.

SGLMultiSet::Iterator& operator++();

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

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

SGLMultiSet::Iterator operator++(int);

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

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

SGLMultiSet::Iterator& operator--();

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

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

SGLMultiSet::Iterator operator--(int);

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

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

bool operator==(SGLMultiSet::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