std.container.array.array.stable_remove_any
- multiple declarations
- Alias Array.stableRemoveAny
- Alias Array.stableRemoveAny
Alias Array.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.
Declaration
struct Array
{
// ...
alias stableRemoveAny = removeAny
;
// ...
}
Precondition
Returns
The element removed.
Complexity
Ο(log(n)
).
Alias Array.stableRemoveAny
Picks one value 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.
Declaration
struct Array
{
// ...
alias stableRemoveAny = removeAny
;
// ...
}
Precondition
Returns
The element removed.
Complexity
Ο(log(n)
)
Authors
Steven Schveighoffer, Andrei Alexandrescu
License
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at ).