mirror of
https://github.com/dlang/phobos.git
synced 2025-04-29 22:50:38 +03:00
Fix Issue 12913 - container: removeAny: fix docs (position of removed element must be unspecified)
This commit is contained in:
parent
da32e983b5
commit
e881d153ac
4 changed files with 11 additions and 11 deletions
|
@ -597,10 +597,8 @@ Postcondition: $(D length == newLength)
|
|||
|
||||
/**
|
||||
Picks one value in an unspecified position in the container, removes
|
||||
it from the container, and returns it. Implementations should pick the
|
||||
value that's the most advantageous for the container, but document the
|
||||
exact behavior. The stable version behaves the same, but guarantees
|
||||
that ranges iterating over the container are never invalidated.
|
||||
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: $(D !empty)
|
||||
|
||||
|
|
|
@ -362,8 +362,9 @@ $(D r) and $(D m) is the length of $(D stuff).
|
|||
/+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +/
|
||||
|
||||
/**
|
||||
Picks one value from the front of the container, removes it from the
|
||||
container, and returns it.
|
||||
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: $(D !empty)
|
||||
|
||||
|
|
|
@ -640,9 +640,9 @@ but relax the complexity constraint to linear.
|
|||
/**
|
||||
Picks one value in an unspecified position in the container, removes
|
||||
it from the container, and returns it. Implementations should pick the
|
||||
value that's the most advantageous for the container, but document the
|
||||
exact behavior. The stable version behaves the same, but guarantees that
|
||||
ranges iterating over the container are never invalidated.
|
||||
value that's the most advantageous for the container. The stable version
|
||||
behaves the same, but guarantees that ranges iterating over the container
|
||||
are never invalidated.
|
||||
|
||||
Precondition: $(D !empty)
|
||||
|
||||
|
|
|
@ -282,8 +282,9 @@ Complexity: $(BIGOH m), where $(D m) is the length of $(D stuff)
|
|||
alias stableInsertFront = insertFront;
|
||||
|
||||
/**
|
||||
Picks one value from the front of the container, removes it from the
|
||||
container, and returns it.
|
||||
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: $(D !empty)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue