summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cvec.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/stc/cvec.h')
-rw-r--r--include/stc/cvec.h3
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