IndexMixin.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(1) for this index

mixintemplate IndexMixin(size_t N, ThisContainer)
void
modify
(
SomeRange
Modifier
)
(
SomeRange r
,
Modifier mod
)
if (
is(SomeRange == RARange) ||
is(ElementType!SomeRange == Position!(ThisNode))
)

Meta