mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 14:10:30 +03:00
added a comment
This commit is contained in:
parent
e4b82503b8
commit
71ffa25d8a
1 changed files with 2 additions and 1 deletions
|
@ -1361,7 +1361,8 @@ if (isInputRange!InputRange &&
|
|||
|
||||
alias EType = ElementType!R;
|
||||
|
||||
// If the haystack is a SortedRange we can use binary search to find the needle
|
||||
// If the haystack is a SortedRange we can use binary search to find the needle.
|
||||
// Works only for the default find predicate and any SortedRange predicate.
|
||||
// 8829 enhancement
|
||||
import std.range: SortedRange;
|
||||
static if(is(typeof(haystack) : SortedRange!TT, TT) && isDefaultPred)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue