lower_bound


Description:

[ Version ( since = "2.68" ) ]
public unowned TreeNode<K,V>? lower_bound (K key)

Gets the lower bound node corresponding to the given key, or null if the tree is empty or all the nodes in the tree have keys that are strictly lower than the searched key.

The lower bound is the first node that has its key greater than or equal to the searched key.

Parameters:

this

a Tree

key

the key to calculate the lower bound for

Returns:

the tree node corresponding to the lower bound, or null if the tree is empty or has only keys strictly lower than the searched key.