summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-09-02 22:09:24 +0200
committerTyge Løvset <[email protected]>2022-09-02 22:09:24 +0200
commita2a18a52df4fc10ad453eba7cdfbe2d02a026f0b (patch)
tree40073f5fb52292a3965824e086eab379440386af /include/stc/cstack.h
parent1fe32468be872bf99698bc899164d56d6b6c80c5 (diff)
downloadSTC-modified-a2a18a52df4fc10ad453eba7cdfbe2d02a026f0b.tar.gz
STC-modified-a2a18a52df4fc10ad453eba7cdfbe2d02a026f0b.zip
Removed cstack_X_push_back(), cstack_X_emplace_back(), cstack_X_pop_back().
Added a simple c_erase_if(). Removed deprecated c_apply() macro.
Diffstat (limited to 'include/stc/cstack.h')
-rw-r--r--include/stc/cstack.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h
index 9ed2beda..921e6618 100644
--- a/include/stc/cstack.h
+++ b/include/stc/cstack.h
@@ -133,13 +133,9 @@ STC_INLINE _cx_value* _cx_memb(_push)(_cx_self* self, _cx_value val) {
_cx_value* vp = self->data + self->size++;
*vp = val; return vp;
}
-STC_INLINE _cx_value* _cx_memb(_push_back)(_cx_self* self, _cx_value val)
- { return _cx_memb(_push)(self, val); }
STC_INLINE void _cx_memb(_pop)(_cx_self* self)
{ _cx_value* p = &self->data[--self->size]; i_keydrop(p); }
-STC_INLINE void _cx_memb(_pop_back)(_cx_self* self)
- { _cx_memb(_pop)(self); }
STC_INLINE const _cx_value* _cx_memb(_at)(const _cx_self* self, size_t idx)
{ assert(idx < self->size); return self->data + idx; }
@@ -149,8 +145,6 @@ STC_INLINE _cx_value* _cx_memb(_at_mut)(_cx_self* self, size_t idx)
#if !defined _i_no_emplace
STC_INLINE _cx_value* _cx_memb(_emplace)(_cx_self* self, _cx_raw raw)
{ return _cx_memb(_push)(self, i_keyfrom(raw)); }
-STC_INLINE _cx_value* _cx_memb(_emplace_back)(_cx_self* self, _cx_raw raw)
- { return _cx_memb(_push)(self, i_keyfrom(raw)); }
#endif // !_i_no_emplace
#if !defined _i_no_clone