Method Cut
Cut(IComparable<T>, out T, out Boolean, out T, out Boolean)
Perform a search in the sorted collection for the ranges in which a non-increasing (i.e. weakly decreasing) function from the item type to
int
is
negative, zero respectively positive. If the supplied cut function is not non-increasing, the result of this call is undefined.
Declaration
public bool Cut(IComparable<T> c, out T low, out bool lowIsValid, out T high, out bool highIsValid)
Parameters
Type | Name | Description |
---|---|---|
IComparable<T> | c | The cut function to , given
as an object, where the cut function is
the method.
|
T | low | Returns the largest item in the collection, where the cut function is positive (if any). |
System.Boolean | lowIsValid | True if the cut function is positive somewhere on this collection. |
T | high | Returns the least item in the collection, where the cut function is negative (if any). |
System.Boolean | highIsValid | True if the cut function is negative somewhere on this collection. |
Returns
Type | Description |
---|---|
System.Boolean |