data_structures
Functions
rbt_rank.c File Reference
#include "rbt.h"
#include "rbt_utils.h"
+ Include dependency graph for rbt_rank.c:

Go to the source code of this file.

Functions

size_t rbt_rank (const t_rbt *rbt, const void *key)
 Returns the number of keys in the tree strictly less than the specified key. More...
 

Function Documentation

◆ rbt_rank()

size_t rbt_rank ( const t_rbt rbt,
const void *  key 
)

Returns the number of keys in the tree strictly less than the specified key.

Parameters
keyThe key
Returns
the number of keys in the tree strictly less than the specified key

Definition at line 34 of file rbt_rank.c.