src/cx/map.h

changeset 857
4d12e34bb130
parent 856
6bbbf219251d
child 890
54565fd74e74
equal deleted inserted replaced
856:6bbbf219251d 857:4d12e34bb130
185 static inline void cxMapStorePointers(CxMap *map) { 185 static inline void cxMapStorePointers(CxMap *map) {
186 map->collection.store_pointer = true; 186 map->collection.store_pointer = true;
187 map->collection.elem_size = sizeof(void *); 187 map->collection.elem_size = sizeof(void *);
188 } 188 }
189 189
190 /**
191 * Returns true, if this map is storing pointers instead of the actual data.
192 *
193 * @param map
194 * @return true, if this map is storing pointers
195 * @see cxMapStorePointers()
196 */
197 __attribute__((__nonnull__))
198 static inline bool cxMapIsStoringPointers(CxMap const *map) {
199 return map->collection.store_pointer;
200 }
190 201
191 /** 202 /**
192 * Deallocates the memory of the specified map. 203 * Deallocates the memory of the specified map.
193 * 204 *
194 * @param map the map to be destroyed 205 * @param map the map to be destroyed

mercurial