diff options
| author | Tyge Løvset <[email protected]> | 2022-04-15 22:08:12 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-04-15 22:08:12 +0200 |
| commit | fa261ddd307de9b7bb2965a066fd83b66d8d83a7 (patch) | |
| tree | f89c186fdaaedb8ab34c223e1a75f4d25db612ab /include/stc/cvec.h | |
| parent | 99acd2149f3f8996249b3ef82f7490dd098783d7 (diff) | |
| download | STC-modified-fa261ddd307de9b7bb2965a066fd83b66d8d83a7.tar.gz STC-modified-fa261ddd307de9b7bb2965a066fd83b66d8d83a7.zip | |
Updated README.md docs on template args! Reverted to put() as alias for insert_or_assign() for maps. Reverted/added push_back()/emplace_back()/pop_back() to cstack.
Diffstat (limited to 'include/stc/cvec.h')
| -rw-r--r-- | include/stc/cvec.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/stc/cvec.h b/include/stc/cvec.h index 79506a28..b671413b 100644 --- a/include/stc/cvec.h +++ b/include/stc/cvec.h @@ -109,10 +109,8 @@ 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_iter
-_cx_memb(_emplace)(_cx_self* self, const size_t idx, _cx_raw val) {
- return _cx_memb(_emplace_range_p)(self, self->data + idx, &val, &val + 1);
-}
+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);
|
