public bool TryWeakSuccessor(K item, out K res) { bool success = sorteddict.TryWeakSuccessor(item, out SCG.KeyValuePair <K, V> pRes); res = pRes.Key; return(success); }
/// <summary> /// Find the entry in the dictionary whose key is the /// weak successor of the specified key. /// </summary> /// <param name="key">The key</param> /// <param name="res">The weak successor, if any</param> /// <returns>True if the key has a weak successor</returns> public bool TryWeakSuccessor(K key, out SCG.KeyValuePair <K, V> res) => sorteddict.TryWeakSuccessor(key, out res);
/// <summary> /// Find the entry in the dictionary whose key is the /// weak successor of the specified key. /// </summary> /// <param name="key">The key</param> /// <param name="res">The weak successor, if any</param> /// <returns>True if the key has a weak successor</returns> public bool TryWeakSuccessor(K key, out KeyValuePair <K, V> res) { return(sorteddict.TryWeakSuccessor(key, out res)); }