summaryrefslogtreecommitdiffhomepage
path: root/include/stc/csmap.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-06 11:40:41 +0100
committerTyge Løvset <[email protected]>2023-01-06 11:40:41 +0100
commit7abea5ab04bffebbedfad7bd8d9c5c26170d19af (patch)
tree25f1aa511aa27198c31b7bad13ae137dd52828ad /include/stc/csmap.h
parentdd1ac09cd54e2632ec9d272ec578cde67a5edd01 (diff)
downloadSTC-modified-7abea5ab04bffebbedfad7bd8d9c5c26170d19af.tar.gz
STC-modified-7abea5ab04bffebbedfad7bd8d9c5c26170d19af.zip
Removed swap() function from all containers. Use safe c_SWAP() macro instead.
Diffstat (limited to 'include/stc/csmap.h')
-rw-r--r--include/stc/csmap.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/stc/csmap.h b/include/stc/csmap.h
index 0af55b2b..e5df0fe2 100644
--- a/include/stc/csmap.h
+++ b/include/stc/csmap.h
@@ -120,7 +120,6 @@ STC_API void _cx_memb(_next)(_cx_iter* it);
STC_INLINE bool _cx_memb(_empty)(const _cx_self* cx) { return cx->size == 0; }
STC_INLINE size_t _cx_memb(_size)(const _cx_self* cx) { return cx->size; }
STC_INLINE size_t _cx_memb(_capacity)(const _cx_self* cx) { return cx->cap; }
-STC_INLINE void _cx_memb(_swap)(_cx_self* a, _cx_self* b) { c_SWAP(_cx_self, *a, *b); }
STC_INLINE _cx_iter _cx_memb(_find)(const _cx_self* self, _cx_rawkey rkey)
{ _cx_iter it; _cx_memb(_find_it)(self, rkey, &it); return it; }
STC_INLINE bool _cx_memb(_contains)(const _cx_self* self, _cx_rawkey rkey)