OrderedIndex.modify

Perform mod on r.front and performs any necessary fixups to container's indices. If the result of mod violates any index' invariant, r.front is removed from the container. Preconditions: !r.empty,
mod is a callable of the form void mod(ref Value) Complexity: O(m(n)),
O(log(n)) for this index

mixintemplate OrderedIndex(size_t N, bool allowDuplicates, alias KeyFromValue, alias Compare, ThisContainer)
void
modify
(
SomeRange
Modifier
)
(
SomeRange r
,
Modifier mod
)
if (
is(SomeRange == OrderedRange) ||
is(ElementType!SomeRange == Position!ThisNode)
)

Meta