655 __attribute__((__nonnull__, __warn_unused_result__)) |
655 __attribute__((__nonnull__, __warn_unused_result__)) |
656 static inline void *cxMapRemoveAndGet( |
656 static inline void *cxMapRemoveAndGet( |
657 CxMap *map, |
657 CxMap *map, |
658 CxHashKey key |
658 CxHashKey key |
659 ) { |
659 ) { |
660 return map->cl->remove(map, key, !map->store_pointer); |
660 return map->cl->remove(map, key, !map->collection.store_pointer); |
661 } |
661 } |
662 |
662 |
663 /** |
663 /** |
664 * Removes a key/value-pair from the map by using the key. |
664 * Removes a key/value-pair from the map by using the key. |
665 * |
665 * |
682 __attribute__((__nonnull__, __warn_unused_result__)) |
682 __attribute__((__nonnull__, __warn_unused_result__)) |
683 static inline void *cxMapRemoveAndGet( |
683 static inline void *cxMapRemoveAndGet( |
684 CxMap *map, |
684 CxMap *map, |
685 cxstring key |
685 cxstring key |
686 ) { |
686 ) { |
687 return map->cl->remove(map, cx_hash_key_cxstr(key), !map->store_pointer); |
687 return map->cl->remove(map, cx_hash_key_cxstr(key), !map->collection.store_pointer); |
688 } |
688 } |
689 |
689 |
690 /** |
690 /** |
691 * Removes a key/value-pair from the map by using the key. |
691 * Removes a key/value-pair from the map by using the key. |
692 * |
692 * |
709 __attribute__((__nonnull__, __warn_unused_result__)) |
709 __attribute__((__nonnull__, __warn_unused_result__)) |
710 static inline void *cxMapRemoveAndGet( |
710 static inline void *cxMapRemoveAndGet( |
711 CxMap *map, |
711 CxMap *map, |
712 cxmutstr key |
712 cxmutstr key |
713 ) { |
713 ) { |
714 return map->cl->remove(map, cx_hash_key_cxstr(key), !map->store_pointer); |
714 return map->cl->remove(map, cx_hash_key_cxstr(key), !map->collection.store_pointer); |
715 } |
715 } |
716 |
716 |
717 /** |
717 /** |
718 * Removes a key/value-pair from the map by using the key. |
718 * Removes a key/value-pair from the map by using the key. |
719 * |
719 * |