summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cvec.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/cvec.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/cvec.h')
-rw-r--r--include/stc/cvec.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/stc/cvec.h b/include/stc/cvec.h
index 64876b9b..fbacd305 100644
--- a/include/stc/cvec.h
+++ b/include/stc/cvec.h
@@ -128,7 +128,6 @@ STC_INLINE size_t _cx_memb(_size)(const _cx_self* self) { return self->_le
STC_INLINE size_t _cx_memb(_capacity)(const _cx_self* self) { return self->_cap; }
STC_INLINE bool _cx_memb(_empty)(const _cx_self* self) { return !self->_len; }
STC_INLINE _cx_raw _cx_memb(_value_toraw)(const _cx_value* val) { return i_keyto(val); }
-STC_INLINE void _cx_memb(_swap)(_cx_self* a, _cx_self* b) { c_SWAP(_cx_self, *a, *b); }
STC_INLINE _cx_value* _cx_memb(_front)(const _cx_self* self) { return self->data; }
STC_INLINE _cx_value* _cx_memb(_back)(const _cx_self* self)
{ return self->data + self->_len - 1; }