Method TryWeakPredecessor
TryWeakPredecessor(T, out T)
Find the weak predecessor of item in the sorted collection, that is, the greatest item in the collection smaller than or equal to the item.
Declaration
public bool TryWeakPredecessor(T item, out T res)
Parameters
Type | Name | Description |
---|---|---|
T | item | The item to find the weak predecessor for. |
T | res | The weak predecessor, if any; otherwise the default value for T. |
Returns
Type | Description |
---|---|
System.Boolean | True if item has a weak predecessor; otherwise false. |