sincerely Singaporean

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

SGLUnorderedMap::ConstIterator

see header file

(no source file, everything inside header)

template ‹typename K, typename V, typename EqualityCheck, typename HashFunction› class SGLUnorderedMap::ConstIterator;

part of SGEXTN module SG_Containers

constant iterator for SGLUnorderedMap

detailed description

list of all including inherited members

implementation details

preprocessor file inclusion directive: #include ‹SGLUnorderedMap.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

const K& key();

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

SGLUnorderedMap::ConstIterator& operator++();

SGLUnorderedMap::ConstIterator operator++(int);

SGLUnorderedMap::ConstIterator operator--(int);

SGLUnorderedMap::ConstIterator& operator--();

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

const V& value();

Detailed Description

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

Implementation Details

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

const K& key();

Returns the key in the key value pair that this constant iterator points to.

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

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

Checks if this constant iterator points to a different key value pair from x.

SGLUnorderedMap::ConstIterator& operator++();

Increments the constant iterator to point towards the next key value pair and returns the new constant iterator.

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

SGLUnorderedMap::ConstIterator operator++(int);

Increments the constant iterator to point towards the next key value pair and returns the old constant iterator.

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

SGLUnorderedMap::ConstIterator operator--(int);

Decrements the constant iterator to point towards the previous key value pair and returns the old constant iterator.

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

SGLUnorderedMap::ConstIterator& operator--();

Decrements the constant iterator to point towards the previous key value pair and returns the new constant iterator.

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

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

Checks if this constant iterator points to the same key value pair as x.

const V& value();

Returns the value in the key value pair that this constant iterator points to.

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

©2025 05524F.sg (Singapore)

contact 05524F / report a bug / make a suggestion

about 05524F SINGAPORE values

list of 05524F projects