summaryrefslogtreecommitdiffhomepage
path: root/stc/cqueue.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-09-06 23:32:30 +0200
committerTyge Løvset <[email protected]>2020-09-06 23:32:30 +0200
commit5b78847871217562dcddbb0bd34076a892eb49e1 (patch)
tree66204cf3a2c0a8d847f8e423856249d11fa8946d /stc/cqueue.h
parentc42c18bb94606b45454da937690f872b5ebd59d1 (diff)
downloadSTC-modified-5b78847871217562dcddbb0bd34076a892eb49e1.tar.gz
STC-modified-5b78847871217562dcddbb0bd34076a892eb49e1.zip
Renamed push_****(), _insert() to _emplace(). added insert_or_assign(), etc.
Diffstat (limited to 'stc/cqueue.h')
-rw-r--r--stc/cqueue.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/stc/cqueue.h b/stc/cqueue.h
index b8378e49..a9efa1b6 100644
--- a/stc/cqueue.h
+++ b/stc/cqueue.h
@@ -79,14 +79,13 @@ cqueue_##X##_back(cqueue_##X* self) {return ctype##_back(self);} \
STC_INLINE void \
cqueue_##X##_pop(cqueue_##X* self) {ctype##_pop_front(self);} \
STC_API void \
-cqueue_##X##_push_v(cqueue_##X* self, ctype##_value_t value) { \
- ctype##_push_back_v(self, value); \
+cqueue_##X##_push(cqueue_##X* self, ctype##_value_t value) { \
+ ctype##_push_back(self, value); \
} \
STC_INLINE void \
-cqueue_##X##_push(cqueue_##X* self, cqueue_##X##_rawvalue_t rawValue) { \
- ctype##_push_back(self, rawValue); \
+cqueue_##X##_emplace(cqueue_##X* self, cqueue_##X##_rawvalue_t rawValue) { \
+ ctype##_emplace_back(self, rawValue); \
} \
- \
STC_API void \
cqueue_##X##_push_n(cqueue_##X *self, const cqueue_##X##_input_t in[], size_t size) { \
ctype##_push_n(self, in, size); \