Exemple #1
0
            public bool TryWeakPredecessor(K item, out K res)
            {
                bool success = sorteddict.TryWeakPredecessor(item, out SCG.KeyValuePair <K, V> pRes);

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