SList.removeAny

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

struct SList(T)
T
removeAny
()
if (
!is(T == shared)
)

Return Value

Type: T

The element removed.

Complexity: O(1).

Meta