Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libc++] Refactor stride_counting_iterator
Instead of storing the wrapped iterator inside the stride_counting_iterator, store its base so we can have e.g. a stride_counting_iterator of an input_iterator (which was previously impossible because input_iterators are not copyable). Also a few other simplifications in stride_counting_iterator. As a fly-by fix, remove the member base() functions, which are super confusing. Differential Revision: https://reviews.llvm.org/D116613
- Loading branch information
Showing
3 changed files
with
55 additions
and
84 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