Hello, from the benchmark code I figured out that this seems to be the way to check if set contains an element:
bool res = set.find(i + 1).leaf();
However, the following code seems to work incorrectly
for (int i = 0; i < 32; ++i) {
set.insert(i);
assert(!set.find(i + 1).leaf());
}
Here, assert fails at i = 31. This is very strange, since we never inserted i+1 into the set, so it should not be present in it.
Is this a bug?
Or am I doing something wrong?
Hello, from the benchmark code I figured out that this seems to be the way to check if set contains an element:
However, the following code seems to work incorrectly
Here, assert fails at
i = 31. This is very strange, since we never insertedi+1into the set, so it should not be present in it.Is this a bug?
Or am I doing something wrong?