some features

in main.cpp fastest Variant implementation
This commit is contained in:
2020-08-05 00:53:27 +03:00
parent 9cd108cf20
commit 70a7363f76
5 changed files with 262 additions and 97 deletions

View File

@@ -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;