cbstmap · Section 3
cbstmap_size
NAME
cbstmap_size - get the number of elements in the map
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/cbstmap.h> size_t cbstmap_size(cbmap cbm);
DESCRIPTION
Returns how many key-value pairs the BST map stores right now.
PARAMETERS
cbm BST map to query
RETURN VALUE
The number of elements in the map.
NOTES
O(1). The function asserts if cbm is NULL.