Method TrySuccessor
TrySuccessor(T, out T)
Find the strict successor of item in the sorted collection, that is, the least item in the collection greater than the supplied value.
Declaration
public bool TrySuccessor(T item, out T res)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item to find the successor for. |
T | res | The successor, if any; otherwise the default value for T. |
Returns
Type | Description |
---|---|
System.Boolean | True if item has a successor; otherwise false. |