added a comment

This commit is contained in:
RazvanN7 2016-11-18 15:04:39 +02:00
parent e4b82503b8
commit 71ffa25d8a

View file

@ -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)