diff -r 6bbbf219251d -r 4d12e34bb130 src/cx/map.h --- a/src/cx/map.h Thu May 23 20:43:04 2024 +0200 +++ b/src/cx/map.h Thu May 23 22:06:32 2024 +0200 @@ -187,6 +187,17 @@ map->collection.elem_size = sizeof(void *); } +/** + * Returns true, if this map is storing pointers instead of the actual data. + * + * @param map + * @return true, if this map is storing pointers + * @see cxMapStorePointers() + */ +__attribute__((__nonnull__)) +static inline bool cxMapIsStoringPointers(CxMap const *map) { + return map->collection.store_pointer; +} /** * Deallocates the memory of the specified map.