src/cx/map.h

changeset 857
4d12e34bb130
parent 856
6bbbf219251d
child 890
54565fd74e74
--- 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.

mercurial