diff options
| author | Tyge Lovset <[email protected]> | 2022-04-02 00:14:17 +0200 |
|---|---|---|
| committer | Tyge Lovset <[email protected]> | 2022-04-02 00:32:00 +0200 |
| commit | d1660bb47cbf3fc0a7066ef1472f2d3bdfeb92b3 (patch) | |
| tree | 2e9e55277432c1008cde08ac2c714d898c098fee /include/stc/cmap.h | |
| parent | b707e18ae93c60f2b659bad39f1daf54604445f7 (diff) | |
| download | STC-modified-d1660bb47cbf3fc0a7066ef1472f2d3bdfeb92b3.tar.gz STC-modified-d1660bb47cbf3fc0a7066ef1472f2d3bdfeb92b3.zip | |
Internal refactoring/macro rename.
Diffstat (limited to 'include/stc/cmap.h')
| -rw-r--r-- | include/stc/cmap.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/stc/cmap.h b/include/stc/cmap.h index bbe021a7..9bc4d621 100644 --- a/include/stc/cmap.h +++ b/include/stc/cmap.h @@ -87,7 +87,7 @@ typedef _i_SET_ONLY( i_keyraw ) _cx_raw;
STC_API _cx_self _cx_memb(_with_capacity)(size_t cap);
-#if !defined _i_no_from
+#if !defined _i_no_clone
STC_API _cx_self _cx_memb(_clone)(_cx_self map);
#endif
STC_API void _cx_memb(_drop)(_cx_self* self);
@@ -110,7 +110,7 @@ STC_INLINE bool _cx_memb(_contains)(const _cx_self* self, i_keyraw rkey) { return self->size && self->_hashx[_cx_memb(_bucket_)(self, &rkey).idx]; }
#ifndef _i_isset
- #if !defined _i_no_from
+ #if !defined _i_no_clone
STC_API _cx_result _cx_memb(_emplace_or_assign)(_cx_self* self, i_keyraw rkey, i_valraw rmapped);
#endif
STC_API _cx_result _cx_memb(_insert_or_assign)(_cx_self* self, i_key _key, i_val _mapped);
@@ -128,7 +128,7 @@ STC_INLINE bool _cx_memb(_contains)(const _cx_self* self, i_keyraw rkey) }
#endif
-#if !defined _i_no_from
+#if !defined _i_no_clone
STC_INLINE void _cx_memb(_copy)(_cx_self *self, _cx_self other) {
if (self->table == other.table) return;
_cx_memb(_drop)(self); *self = _cx_memb(_clone)(other);
@@ -150,7 +150,7 @@ _cx_memb(_emplace)(_cx_self* self, i_keyraw rkey _i_MAP_ONLY(, i_valraw rmapped) }
return _res;
}
-#endif // !_i_no_from
+#endif // !_i_no_clone
STC_INLINE _cx_raw
_cx_memb(_value_toraw)(_cx_value* val) {
@@ -272,7 +272,7 @@ STC_DEF void _cx_memb(_clear)(_cx_self* self) { _res.ref->second = _mapped; return _res;
}
- #if !defined _i_no_from
+ #if !defined _i_no_clone
STC_DEF _cx_result
_cx_memb(_emplace_or_assign)(_cx_self* self, i_keyraw rkey, i_valraw rmapped) {
_cx_result _res = _cx_memb(_insert_entry_)(self, rkey);
@@ -313,7 +313,7 @@ _cx_memb(_insert_entry_)(_cx_self* self, i_keyraw rkey) { return res;
}
-#if !defined _i_no_from
+#if !defined _i_no_clone
STC_DEF _cx_self
_cx_memb(_clone)(_cx_self m) {
_cx_self clone = {
|
