diff options
| author | Tyge Løvset <[email protected]> | 2022-11-14 11:04:40 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-11-14 11:04:40 +0100 |
| commit | bb67f7192b7786792794b783a3d11c3e61d92c39 (patch) | |
| tree | 037ea2229ccc698b2d73c6dfde668abebb1a23d8 /include/stc/cpque.h | |
| parent | bed7d49063cab3c4f2addb7d06af8db631a3b846 (diff) | |
| download | STC-modified-bb67f7192b7786792794b783a3d11c3e61d92c39.tar.gz STC-modified-bb67f7192b7786792794b783a3d11c3e61d92c39.zip | |
Internal update.
Diffstat (limited to 'include/stc/cpque.h')
| -rw-r--r-- | include/stc/cpque.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/cpque.h b/include/stc/cpque.h index ba83474b..996e1a22 100644 --- a/include/stc/cpque.h +++ b/include/stc/cpque.h @@ -90,7 +90,7 @@ STC_INLINE const _cx_value* _cx_memb(_top)(const _cx_self* self) STC_INLINE void _cx_memb(_pop)(_cx_self* self) { assert(!_cx_memb(_empty)(self)); _cx_memb(_erase_at)(self, 0); } -#if !defined _i_no_clone +#if !defined i_no_clone STC_API _cx_self _cx_memb(_clone)(_cx_self q); STC_INLINE void _cx_memb(_copy)(_cx_self *self, const _cx_self* other) { @@ -100,12 +100,12 @@ STC_INLINE void _cx_memb(_copy)(_cx_self *self, const _cx_self* other) { } STC_INLINE i_key _cx_memb(_value_clone)(_cx_value val) { return i_keyclone(val); } -#endif // !_i_no_clone +#endif // !i_no_clone -#if !defined _i_no_emplace +#if !defined i_no_emplace STC_INLINE void _cx_memb(_emplace)(_cx_self* self, _cx_raw raw) { _cx_memb(_push)(self, i_keyfrom(raw)); } -#endif // !_i_no_emplace +#endif // !i_no_emplace /* -------------------------- IMPLEMENTATION ------------------------- */ #if defined(i_implement) @@ -127,7 +127,7 @@ _cx_memb(_make_heap)(_cx_self* self) { _cx_memb(_sift_down_)(self, k, n); } -#if !defined _i_no_clone +#if !defined i_no_clone STC_DEF _cx_self _cx_memb(_clone)(_cx_self q) { _cx_self out = _cx_memb(_with_capacity)(q._len); for (; out._len < out._cap; ++q.data) |
