The OpenD Programming Language

DList.stableInsert

Inserts stuff to the front/back of the 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 stableInsert = insert

Return Value

The number of elements inserted

Complexity: O(log(n))

Meta