diff options
| author | Tyge Løvset <[email protected]> | 2022-04-09 00:14:50 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-09 00:14:50 +0200 |
| commit | 1a4223837d4e34a085f00e323759ee5f9cd81bd3 (patch) | |
| tree | 9be8cb543c9043fa885e511b86595c91ea1f4fc5 /include/stc/cvec.h | |
| parent | 03065ed6ef93f88003cd6754ca4d50ba20a76ebd (diff) | |
| download | STC-modified-1a4223837d4e34a085f00e323759ee5f9cd81bd3.tar.gz STC-modified-1a4223837d4e34a085f00e323759ee5f9cd81bd3.zip | |
Universally added a put() function to all containers.
Diffstat (limited to 'include/stc/cvec.h')
| -rw-r--r-- | include/stc/cvec.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/include/stc/cvec.h b/include/stc/cvec.h index 1990b15d..34e830ba 100644 --- a/include/stc/cvec.h +++ b/include/stc/cvec.h @@ -109,8 +109,6 @@ STC_API _cx_iter _cx_memb(_emplace_range_p)(_cx_self* self, _cx_value* po const _cx_raw* p1, const _cx_raw* p2);
STC_INLINE _cx_value* _cx_memb(_emplace_back)(_cx_self* self, i_valraw raw)
{ return _cx_memb(_push_back)(self, i_valfrom(raw)); }
-STC_INLINE _cx_value* _cx_memb(_emplace)(_cx_self* self, i_valraw raw)
- { return _cx_memb(_push_back)(self, i_valfrom(raw)); }
STC_INLINE _cx_iter
_cx_memb(_emplace_n)(_cx_self* self, const size_t idx, const _cx_raw arr[], const size_t n) {
return _cx_memb(_emplace_range_p)(self, self->data + idx, arr, arr + n);
@@ -134,7 +132,7 @@ STC_INLINE void _cx_memb(_swap)(_cx_self* a, _cx_self* b) { c_swap(_cx_s 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 + cvec_rep_(self)->size - 1; }
-STC_INLINE _cx_value* _cx_memb(_push)(_cx_self* self, i_val value)
+STC_INLINE _cx_value* _cx_memb(_put)(_cx_self* self, i_val value)
{ return _cx_memb(_push_back)(self, value); }
STC_INLINE void _cx_memb(_pop_back)(_cx_self* self)
{ _cx_value* p = &self->data[--cvec_rep_(self)->size]; i_valdrop(p); }
|
