chashmap · Section 3
chashmap_size
NAME
chashmap_size - get the number of elements in the hash map
LIBRARY
C Collections (libccollections, -lccollections)
SYNOPSIS
#include <ccollections/chashmap.h> size_t chashmap_size(chmap chm);
DESCRIPTION
Returns the number of key-value pairs that the hash map holds right now.
PARAMETERS
chm Hash map to query
RETURN VALUE
The number of elements in the map
NOTES
O(1) complexity Asserts if chm is NULL