The OpenD Programming Language

DList.stableInsertBefore

Inserts stuff after range r, which must be a non-empty range previously extracted from this container.

stuff can be a value convertible to T or a range of objects convertible to T. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated.

import std.container.dlist;
struct DList(T)
alias stableInsertBefore = insertBefore

Return Value

The number of values inserted.

Complexity: O(k + m), where k is the number of elements in r and m is the length of stuff.

Meta