The OpenD Programming Language

DList.stableRemoveAny

Picks one value in an unspecified position in the container, removes it from the container, and returns it. The stable version behaves the same, but guarantees that ranges iterating over the container are never invalidated.

Precondition: !empty

import std.container.dlist;
struct DList(T)
alias stableRemoveAny = removeAny

Return Value

The element removed.

Complexity: O(1).

Meta