insertSorted

Inserts a value into a sorted range. Inserts before equal elements.

size_t
insertSorted
(
alias sort = "a<b"
T
)
(
ref T[] arr
,)

Return Value

Type: size_t

the index where the value has been inserted.

Meta