IndexMixin.insert

Inserts value into this heap, unless another index refuses it.

mixin template IndexMixin(size_t N, alias KeyFromValue, alias Compare, ThisContainer)
size_t
insert
(
SomeValue
)
(
SomeValue value
)
if (
isImplicitlyConvertible!(SomeValue, ValueView)
)

Return Value

Type: size_t

the number of values added to the container Complexity: O(i(n));
O(log(n)) for this index

Meta