internal override T GetMax() { RBTree.Node lb = null, ub = null; set.tree.Bound(upper, ref lb, ref ub); if (lb == null || set.helper.Compare(lower, lb) > 0) { return(default(T)); } return(((Node)lb).item); }
public int Compare(T item, RBTree.Node node) { return(comparer.Compare(item, ((Node)node).item)); }