mirror of
https://github.com/dlang/phobos.git
synced 2025-05-01 07:30:33 +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
|
Picks one value in an unspecified position in the container, removes
|
||||||
it from the container, and returns it. Implementations should pick the
|
it from the container, and returns it. The stable version behaves the same,
|
||||||
value that's the most advantageous for the container, but document the
|
but guarantees that ranges iterating over the container are never invalidated.
|
||||||
exact behavior. The stable version behaves the same, but guarantees
|
|
||||||
that ranges iterating over the container are never invalidated.
|
|
||||||
|
|
||||||
Precondition: $(D !empty)
|
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
|
Picks one value in an unspecified position in the container, removes
|
||||||
container, and returns it.
|
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)
|
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
|
Picks one value in an unspecified position in the container, removes
|
||||||
it from the container, and returns it. Implementations should pick the
|
it from the container, and returns it. Implementations should pick the
|
||||||
value that's the most advantageous for the container, but document the
|
value that's the most advantageous for the container. The stable version
|
||||||
exact behavior. The stable version behaves the same, but guarantees that
|
behaves the same, but guarantees that ranges iterating over the container
|
||||||
ranges iterating over the container are never invalidated.
|
are never invalidated.
|
||||||
|
|
||||||
Precondition: $(D !empty)
|
Precondition: $(D !empty)
|
||||||
|
|
||||||
|
|
|
@ -282,8 +282,9 @@ Complexity: $(BIGOH m), where $(D m) is the length of $(D stuff)
|
||||||
alias stableInsertFront = insertFront;
|
alias stableInsertFront = insertFront;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Picks one value from the front of the container, removes it from the
|
Picks one value in an unspecified position in the container, removes
|
||||||
container, and returns it.
|
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)
|
Precondition: $(D !empty)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue