some features
in main.cpp fastest Variant implementation
This commit is contained in:
@@ -371,4 +371,7 @@
|
||||
* \fn bool PIMapIterator::next()
|
||||
* \brief Jump to next entry and return if new position is valid.
|
||||
|
||||
* \fn void PIMapIterator::reset()
|
||||
* \brief Reset iterator to initial position.
|
||||
|
||||
* */
|
||||
|
||||
@@ -364,6 +364,13 @@ public:
|
||||
}
|
||||
return false;
|
||||
}
|
||||
inline void reset() {
|
||||
if (rev) {
|
||||
pos = m.size_s();
|
||||
} else {
|
||||
pos = -1;
|
||||
}
|
||||
}
|
||||
private:
|
||||
const MapType & m;
|
||||
ssize_t pos;
|
||||
|
||||
Reference in New Issue
Block a user