phobos/std/algorithm
Mathis Beer 5976fe8c1a Fix Bugzilla issue 24342: Actually check that range and sentinel types match in until before using "sentinel as subrange" mode.
`until` does special magic when `Sentinel` consists of multiple elements of `Range`. However, because `Range` can be a range of ranges, in which case even a `Sentinel` that is a range may still only be a single element, we must confirm that the element type of `Sentinel` is actually the same as `Range` before enabling this.
The `immutable ElementEncodingType` idiom is stolen from `startsWith`, which forms the basis of `until` anyways (see `predSatisfied`).
2024-01-18 14:56:52 +08:00
..
comparison.d Better std.algorithm.comparison.clamp error messages 2023-03-15 16:53:20 +01:00
internal.d Add explanatory comment to addressOf 2022-02-07 16:29:58 +00:00
iteration.d Merge pull request #8836 from ntrel/fold-docs 2023-11-20 17:36:06 +01:00
mutation.d User hyperlinks to refer to bugzilla issues (#8766) 2023-06-16 14:45:44 +03:00
package.d Fix Issue 20397 2023-02-01 00:44:25 +01:00
searching.d Fix Bugzilla issue 24342: Actually check that range and sentinel types match in until before using "sentinel as subrange" mode. 2024-01-18 14:56:52 +08:00
setops.d Fix return scope in cartesianProduct Result.save 2022-03-09 15:37:09 +00:00
sorting.d algorithm/sorting: Fix typo introduced in PR #8678 2023-02-18 14:33:49 +00:00