From 5b78847871217562dcddbb0bd34076a892eb49e1 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sun, 6 Sep 2020 23:32:30 +0200 Subject: Renamed push_****(), _insert() to _emplace(). added insert_or_assign(), etc. --- stc/cqueue.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'stc/cqueue.h') 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); \ -- cgit v1.2.3