RankedDictionaryTKey, TValueIndexOfKey Method |
Namespace: Kaos.Collections
public int IndexOfKey( TKey key )
Exception | Condition |
---|---|
ArgumentNullException | When key is null. |
If key is not found, apply the bitwise complement operator (~) to the result to get the index of the next higher element.
This is a O(log n) operation.