From 708f45220329f4e23b1671cb1b18c37f98232bff Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Mon, 7 Sep 2020 16:43:32 +0200 Subject: Forgot to convert priority_queue to use emplace() function name. --- stc/cpqueue.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/stc/cpqueue.h b/stc/cpqueue.h index 4cdc3f37..ea8bd0ed 100644 --- a/stc/cpqueue.h +++ b/stc/cpqueue.h @@ -73,10 +73,10 @@ cpqueue_##X##_top(const cpqueue_##X* self) {return &self->data[0];} \ STC_INLINE void \ cpqueue_##X##_pop(cpqueue_##X* self) {cpqueue_##X##_erase(self, 0);} \ STC_API void \ -cpqueue_##X##_push_v(cpqueue_##X* self, cpqueue_##X##_value_t value); \ +cpqueue_##X##_push(cpqueue_##X* self, cpqueue_##X##_value_t value); \ STC_INLINE void \ -cpqueue_##X##_push(cpqueue_##X* self, cpqueue_##X##_rawvalue_t rawValue) { \ - cpqueue_##X##_push_v(self, ctype##_value_from_raw(rawValue)); \ +cpqueue_##X##_emplace(cpqueue_##X* self, cpqueue_##X##_rawvalue_t rawValue) { \ + cpqueue_##X##_push(self, ctype##_value_from_raw(rawValue)); \ } \ STC_API void \ cpqueue_##X##_push_n(cpqueue_##X *self, const cpqueue_##X##_input_t in[], size_t size); \ @@ -119,7 +119,7 @@ cpqueue_##X##_erase(cpqueue_##X* self, size_t i) { \ } \ \ STC_API void \ -cpqueue_##X##_push_v(cpqueue_##X* self, cpqueue_##X##_value_t value) { \ +cpqueue_##X##_push(cpqueue_##X* self, cpqueue_##X##_value_t value) { \ ctype##_push_back(self, value); /* sift-up the value */ \ size_t n = cpqueue_##X##_size(*self), c = n; \ cpqueue_##X##_value_t *arr = self->data - 1; \ -- cgit v1.2.3