Edit comments in Map and Set classes

This commit is contained in:
Daniel Chappuis 2021-09-28 12:58:50 +02:00
parent c0cefa251f
commit 65e99add46
2 changed files with 5 additions and 5 deletions

View File

@ -107,7 +107,7 @@ class Map {
/// Class Iterator /// Class Iterator
/** /**
* This class represents an iterator for the Map * This class represents an iterator for the Map.
*/ */
class Iterator { class Iterator {
@ -177,13 +177,13 @@ class Map {
return &(mMap->mEntries[mCurrentEntryIndex]); return &(mMap->mEntries[mCurrentEntryIndex]);
} }
/// Post increment (it++) /// Pre increment (++it)
Iterator& operator++() { Iterator& operator++() {
advance(); advance();
return *this; return *this;
} }
/// Pre increment (++it) /// Post increment (it++)
Iterator operator++(int) { Iterator operator++(int) {
Iterator tmp = *this; Iterator tmp = *this;
advance(); advance();

View File

@ -176,13 +176,13 @@ class Set {
return &(mSet->mEntries[mCurrentEntryIndex]); return &(mSet->mEntries[mCurrentEntryIndex]);
} }
/// Post increment (it++) /// Pre increment (++it)
Iterator& operator++() { Iterator& operator++() {
advance(); advance();
return *this; return *this;
} }
/// Pre increment (++it) /// Post increment (it++)
Iterator operator++(int) { Iterator operator++(int) {
Iterator tmp = *this; Iterator tmp = *this;
advance(); advance();