Fix Issue 12913 - container: removeAny: fix docs (position of removed element must be unspecified)

This commit is contained in:
Mikhail Novikov 2014-08-20 11:42:43 +03:00
parent da32e983b5
commit e881d153ac
4 changed files with 11 additions and 11 deletions

View file

@ -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)

View file

@ -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)

View file

@ -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)

View file

@ -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)