summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cpque.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/cpque.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/cpque.h')
-rw-r--r--include/stc/cpque.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/include/stc/cpque.h b/include/stc/cpque.h
index 6819948f..7a81d486 100644
--- a/include/stc/cpque.h
+++ b/include/stc/cpque.h
@@ -41,7 +41,6 @@ typedef i_valraw cx_rawvalue_t;
STC_API void cx_memb(_make_heap)(Self* self);
STC_API void cx_memb(_erase_at)(Self* self, size_t idx);
STC_API void cx_memb(_push)(Self* self, cx_value_t value);
-STC_API void cx_memb(_emplace_items)(Self *self, const cx_rawvalue_t arr[], size_t n);
STC_API Self cx_memb(_clone)(Self q);
STC_INLINE Self cx_memb(_init)(void)
@@ -152,12 +151,6 @@ cx_memb(_push)(Self* self, cx_value_t value) {
if (c != n) arr[c] = 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)(self, i_valfrom(arr[i]));
-}
-
#endif
#include "template.h"
#define CPQUE_H_INCLUDED \ No newline at end of file