| RankedSetTIndexOf Method |
Gets the index of the supplied item.
Namespace:
Kaos.Collections
Assembly:
KaosCollections (in KaosCollections.dll) Version: 4.2.0.0
Syntax public int IndexOf(
T item
)
Parameters
- item
- Type: T
The item to find.
Return Value
Type:
Int32The index of
item if found; otherwise a negative value holding the bitwise complement of the insert point.
Remarks
If item is not found, apply the bitwise complement operator
(~)
to the result to get the index of the next higher item.
This is a O(log n) operation.
See Also