assumeSortedEqualIndex.assumeSortedEqualIndex

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

Parameters

v V

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

Meta