summaryrefslogtreecommitdiffhomepage
path: root/include/stc/clist.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-23 20:55:07 +0200
committerTyge Løvset <[email protected]>2021-09-23 20:55:07 +0200
commit2686887e9091b3d56365b8ddc15db67324ee6727 (patch)
tree48e634d4eaebb7c67e3816f4110a150343f9c366 /include/stc/clist.h
parent4ab5b3f6f5c841ab8c2202e838979a0d6df91530 (diff)
downloadSTC-modified-2686887e9091b3d56365b8ddc15db67324ee6727.tar.gz
STC-modified-2686887e9091b3d56365b8ddc15db67324ee6727.zip
Cleanup: Replaced c_emplace() macro with more general c_apply()/c_apply_pair() macros, and removed c_var() macro.
Removed CX_emplace_items() member functions in containers used by c_emplace().
Diffstat (limited to 'include/stc/clist.h')
-rw-r--r--include/stc/clist.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/stc/clist.h b/include/stc/clist.h
index e123200f..7678b540 100644
--- a/include/stc/clist.h
+++ b/include/stc/clist.h
@@ -98,7 +98,6 @@ STC_API void cx_memb(_del)(Self* self);
STC_API cx_value_t* cx_memb(_push_back)(Self* self, i_val value);
STC_API cx_value_t* cx_memb(_push_front)(Self* self, i_val value);
STC_API cx_iter_t cx_memb(_insert)(Self* self, cx_iter_t it, i_val value);
-STC_API void cx_memb(_emplace_items)(Self *self, const cx_rawvalue_t arr[], size_t n);
STC_API cx_iter_t cx_memb(_erase_at)(Self* self, cx_iter_t it);
STC_API cx_iter_t cx_memb(_erase_range)(Self* self, cx_iter_t it1, cx_iter_t it2);
STC_API size_t cx_memb(_remove)(Self* self, i_valraw val);
@@ -209,11 +208,6 @@ cx_memb(_push_front)(Self* self, i_val value) {
return &entry->value;
}
-STC_DEF void
-cx_memb(_emplace_items)(Self *self, const cx_rawvalue_t arr[], size_t n) {
- for (size_t i=0; i<n; ++i) cx_memb(_push_back)(self, i_valfrom(arr[i]));
-}
-
STC_DEF cx_iter_t
cx_memb(_insert)(Self* self, cx_iter_t it, i_val value) {
cx_node_t* node = it.ref ? it.prev : self->last;