diff options
| author | Tyge Løvset <[email protected]> | 2020-09-06 23:32:30 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-09-06 23:32:30 +0200 |
| commit | 5b78847871217562dcddbb0bd34076a892eb49e1 (patch) | |
| tree | 66204cf3a2c0a8d847f8e423856249d11fa8946d /stc/cstack.h | |
| parent | c42c18bb94606b45454da937690f872b5ebd59d1 (diff) | |
| download | STC-modified-5b78847871217562dcddbb0bd34076a892eb49e1.tar.gz STC-modified-5b78847871217562dcddbb0bd34076a892eb49e1.zip | |
Renamed push_****(), _insert() to _emplace(). added insert_or_assign(), etc.
Diffstat (limited to 'stc/cstack.h')
| -rw-r--r-- | stc/cstack.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/stc/cstack.h b/stc/cstack.h index 10e91865..a56d99af 100644 --- a/stc/cstack.h +++ b/stc/cstack.h @@ -66,14 +66,13 @@ cstack_##X##_top(cstack_##X* self) {return ctype##_back(self);} \ STC_INLINE void \
cstack_##X##_pop(cstack_##X* self) {ctype##_pop_back(self);} \
STC_API void \
-cstack_##X##_push_v(cstack_##X* self, ctype##_value_t value) { \
- ctype##_push_back_v(self, value); \
+cstack_##X##_push(cstack_##X* self, ctype##_value_t value) { \
+ ctype##_push_back(self, value); \
} \
STC_INLINE void \
-cstack_##X##_push(cstack_##X* self, cstack_##X##_rawvalue_t rawValue) { \
- ctype##_push_back(self, rawValue); \
+cstack_##X##_emplace(cstack_##X* self, cstack_##X##_rawvalue_t rawValue) { \
+ ctype##_emplace_back(self, rawValue); \
} \
- \
STC_API void \
cstack_##X##_push_n(cstack_##X *self, const cstack_##X##_input_t in[], size_t size) { \
ctype##_push_n(self, in, size); \
|
