assumeSortedContains.assumeSortedContains

  1. bool assumeSortedContains(Slice!(Iterator, 1, kind) slice, V v)
    template assumeSortedContains(alias test = "a < b")
    @optmath
    static if(__traits(isSame, naryFun!test, test))
    @optmath
    bool
    assumeSortedContains
    (
    Iterator
    SliceKind kind
    V
    )
    (
    auto ref Slice!(Iterator, 1, kind) slice
    ,
    auto ref scope const V v
    )
  2. bool assumeSortedContains(T[] ar, V v)
  3. alias assumeSortedContains = .assumeSortedContains!(naryFun!test)

Parameters

slice Slice!(Iterator, 1, kind)

sorted one-dimensional slice or array.

v V

value to test with. It is passed to second argument.

Meta