elementIndex

Given an array and a reference to an element inside it, returns its index. The reverse operation of indexing an array.

@trusted
size_t
elementIndex
(
T
)
(
const(T)[] arr
,
ref const T element
)

Meta