The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
assumeSortedContains.assumeSortedContains
mir
ndslice
sorting
assumeSortedContains
bool
assumeSortedContains
(Slice!(Iterator, 1, kind) slice, V v)
bool
assumeSortedContains
(T[] ar, V v)
template
assumeSortedContains
(alias test = "a < b")
@
fmamath
static if
(
__traits(isSame, naryFun!test, test)
)
@
fmamath
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
Source
See Implementation
mir
ndslice
sorting
assumeSortedContains
functions
assumeSortedContains