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

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