Updated: October 28, 2024 |
Clear the mappings in a multimap
#include <pips/multimap.h>
int pips_multimap_clear(pips_multimap_t *multimap)
This function deletes all items in the current pips_multimap_t instance, effectively removing all of the key-value mappings. This function must be used to safely delete the contents of a multimap; otherwise, memory may be leaked.