Click or drag to resize

RankedSetTAdd Method

Adds an item to the set and returns a success indicator.

Namespace:  Kaos.Collections
Assembly:  KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax
C#
public bool Add(
	T item
)

Parameters

item
Type: T
The item to add.

Return Value

Type: Boolean
true if item was added to the set; otherwise false.

Implements

ISetTAdd(T)
Exceptions
ExceptionCondition
ArgumentExceptionWhen no comparer is available.
Remarks

If item is already in the set, this method returns false and does not throw an exception.

This is a O(log n) operation.

See Also