IMultiSet<T>.Add Method
Overloads
| Add(T, Integer) |
Adds a number of occurrences of an element to the multiset. |
Adds a number of occurrences of an element to the multiset.
Delphi
function Add(const item: T; count: Integer): Integer
Parameters
- item
- T
The element to add occurrences of
- count
- Integer
The number of occurrences of the element to add
Returns
Integer
The count of the element before the operation, zero if the element was not in the multiset.
Exceptions
count is negative.