diff options
| author | Tyge Løvset <[email protected]> | 2023-05-18 15:39:48 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-05-18 15:48:45 +0200 |
| commit | c54da07eb171455ad182d61a1fb5c4e4520aebbb (patch) | |
| tree | e14e7796f075a37d8dd05ff22bf8bfe4d10b6eee /include/stc/cvec.h | |
| parent | 50a16934dde8e65bbcf628d6342c1649f7e09365 (diff) | |
| download | STC-modified-c54da07eb171455ad182d61a1fb5c4e4520aebbb.tar.gz STC-modified-c54da07eb171455ad182d61a1fb5c4e4520aebbb.zip | |
Fixing find_in() in cdeq, and add support c_eraseremove_if() for cqueue and cdeq.
Diffstat (limited to 'include/stc/cvec.h')
| -rw-r--r-- | include/stc/cvec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stc/cvec.h b/include/stc/cvec.h index a7eb1a05..1a0fb118 100644 --- a/include/stc/cvec.h +++ b/include/stc/cvec.h @@ -207,6 +207,9 @@ STC_INLINE _cx_iter _cx_memb(_advance)(_cx_iter it, size_t n) STC_INLINE intptr_t _cx_memb(_index)(const _cx_self* self, _cx_iter it) { return (it.ref - self->data); } +STC_INLINE void _cx_memb(_adjust_end_)(_cx_self* self, intptr_t n) + { self->_len += n; } + #if !defined i_no_cmp || defined _i_has_eq STC_INLINE _cx_iter |
