IMultiSet<T>.Remove Method
Overloads
| Remove(T, Integer) |
Removes a number of occurrences of an element from the multiset. If the multiset contains fewer than this number of occurrences to begin with, all occurrences will be removed. |
Removes a number of occurrences of an element from the multiset. If the multiset contains fewer than this number of occurrences to begin with, all occurrences will be removed.
Delphi
function Remove(const item: T; count: Integer): Integer
Parameters
- item
- T
The element to remove occurrences of
- count
- Integer
The count of occurrences of the element to remove
Returns
Integer
The count of the element before the operation, zero if the element was not in the multiset.
Exceptions
count is negative.