-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make row iterator a proper
random_access_iterator
.
Fixes: #846 This involves defining `operator[]` on the iterator, which indexes at an offset: `i[n] == *(i + n)`. Unfortunately I can't do the same for the _result_ iterator. Way back when, unaware of this requirement, I defined array indexing on a result iterator as `i[n] == (*i)[n]`. It made some code a lot more convenient and seemed very logical.
- Loading branch information
Showing
3 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters