Constructs an iterator positioned as specified. By default iterators
are unpositioned, since this avoids an extra seek in this situation
where one of the seek methods (such as Locate) is immediately called.
If you want to position the iterator at the beginning, e.g. in order to
loop through the entire index, do this instead:
for (auto it = S2ShapeIndex.Iterator(&index, S2ShapeIndex.InitialPosition.BEGIN);
!it.done(); it.Next()) { ... }
Constructs an iterator positioned as specified. By default iterators are unpositioned, since this avoids an extra seek in this situation where one of the seek methods (such as Locate) is immediately called.
If you want to position the iterator at the beginning, e.g. in order to loop through the entire index, do this instead:
for (auto it = S2ShapeIndex.Iterator(&index, S2ShapeIndex.InitialPosition.BEGIN); !it.done(); it.Next()) { ... }