sincerely Singaporean

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

SGLUnorderedMultiSet::ConstIterator

see header file

(no source file, everything inside header)

template ‹typename T, typename EqualityCheck, typename HashFunction› class SGLUnorderedMultiSet::ConstIterator;

part of SGEXTN module SG_Containers

constant iterator for SGLUnorderedMultiSet

detailed description

list of all including inherited members

implementation details

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

const T& operator*();

SGLUnorderedMultiSet::ConstIterator& operator++();

SGLUnorderedMultiSet::ConstIterator operator++(int);

SGLUnorderedMultiSet::ConstIterator& operator--();

SGLUnorderedMultiSet::ConstIterator operator--(int);

bool operator==(SGLUnorderedMultiSet::ConstIterator x);

Detailed Description

SGLUnorderedMultiSet::ConstIterator is a constant iterator for SGLUnorderedMultiSet and points towards an element in the SGLUnorderedMultiSet. This can be used to iterate over the SGLUnorderedMultiSet sequentially. Modification to the SGLUnorderedMultiSet through a constant iterator is not possible. To do that, use a SGLUnorderedMultiSet::Iterator instead. This is a template based class with no separate source file.

Implementation Details

SGLUnorderedMultiSet::ConstIterator stores a pointer to the memory location where SGLUnorderedMultiSet keeps all its data.

bool operator!=(SGLUnorderedMultiSet::ConstIterator x);

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

const T& operator*();

Returns the element that this constant iterator points to.

If this iterator is SGLUnorderedMultiSet::constEnd, using this function will crash.

SGLUnorderedMultiSet::ConstIterator& operator++();

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

SGLUnorderedMultiSet::ConstIterator is circular, incrementing SGLUnorderedMultiSet::constEnd gives SGLUnorderedMultiSet::constBegin and decrementing SGLUnorderedMultiSet::constBegin gives SGLUnorderedMultiSet::constEnd.

SGLUnorderedMultiSet::ConstIterator operator++(int);

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

SGLUnorderedMultiSet::ConstIterator is circular, incrementing SGLUnorderedMultiSet::constEnd gives SGLUnorderedMultiSet::constBegin and decrementing SGLUnorderedMultiSet::constBegin gives SGLUnorderedMultiSet::constEnd.

SGLUnorderedMultiSet::ConstIterator& operator--();

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

SGLUnorderedMultiSet::ConstIterator is circular, incrementing SGLUnorderedMultiSet::constEnd gives SGLUnorderedMultiSet::constBegin and decrementing SGLUnorderedMultiSet::constBegin gives SGLUnorderedMultiSet::constEnd.

SGLUnorderedMultiSet::ConstIterator operator--(int);

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

SGLUnorderedMultiSet::ConstIterator is circular, incrementing SGLUnorderedMultiSet::constEnd gives SGLUnorderedMultiSet::constBegin and decrementing SGLUnorderedMultiSet::constBegin gives SGLUnorderedMultiSet::constEnd.

bool operator==(SGLUnorderedMultiSet::ConstIterator x);

Checks if this constant 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