The OpenD Programming Language

assumeSortedContains.assumeSortedContains

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

Parameters

v V

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

Meta