-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify iteration over ranges in general (#27161)
* Make step of unit range return the unit in the element type * Simplify iteration over ordinal range * Test whether we can iterate over the full inclusive step range of the largest bits integer type * StepRange can safely assume we will land on the boundary of the range; specialization for floats makes no sense, since a StepRange will throw when being constructed with it. * Combine iteration method of LinRange and StepRangeLen
- Loading branch information
Showing
2 changed files
with
15 additions
and
29 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