diff options
| author | Tyge Løvset <[email protected]> | 2021-10-26 20:46:43 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-10-26 20:46:43 +0200 |
| commit | 0c6b41fd08bac55281ff9ad41b0d052171881651 (patch) | |
| tree | 4a8107ce800eba0bd0d659d557133466e01da79c /include/stc/cvec.h | |
| parent | 0f95c005891b0d4b3b2610fdba241cf78c372d81 (diff) | |
| download | STC-modified-0c6b41fd08bac55281ff9ad41b0d052171881651.tar.gz STC-modified-0c6b41fd08bac55281ff9ad41b0d052171881651.zip | |
Added some examples and updated docs. Removed cvec_X_erase() and cdeq_X_erase() - may be used wrong. Use cvec_X_erase_n() instead.
Fixed type-bug in cpque.h (same was in cqueue.h).
Diffstat (limited to 'include/stc/cvec.h')
| -rw-r--r-- | include/stc/cvec.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/include/stc/cvec.h b/include/stc/cvec.h index ff5b4399..3810e678 100644 --- a/include/stc/cvec.h +++ b/include/stc/cvec.h @@ -172,10 +172,7 @@ STC_INLINE cx_iter_t cx_memb(_emplace_range)(Self* self, cx_iter_t it, cx_iter_t it1, cx_iter_t it2) {
return cx_memb(_insert_range_p)(self, it.ref, it1.ref, it2.ref, true);
}
-STC_INLINE cx_iter_t
-cx_memb(_erase)(Self* self, size_t idx) {
- return cx_memb(_erase_range_p)(self, self->data + idx, self->data + idx + 1);
-}
+
STC_INLINE cx_iter_t
cx_memb(_erase_n)(Self* self, size_t idx, size_t n) {
return cx_memb(_erase_range_p)(self, self->data + idx, self->data + idx + n);
|
