diff options
| author | Tyge Løvset <[email protected]> | 2021-09-23 20:55:07 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-09-23 20:55:07 +0200 |
| commit | 2686887e9091b3d56365b8ddc15db67324ee6727 (patch) | |
| tree | 48e634d4eaebb7c67e3816f4110a150343f9c366 /include/stc/cmap.h | |
| parent | 4ab5b3f6f5c841ab8c2202e838979a0d6df91530 (diff) | |
| download | STC-modified-2686887e9091b3d56365b8ddc15db67324ee6727.tar.gz STC-modified-2686887e9091b3d56365b8ddc15db67324ee6727.zip | |
Cleanup: Replaced c_emplace() macro with more general c_apply()/c_apply_pair() macros, and removed c_var() macro.
Removed CX_emplace_items() member functions in containers used by c_emplace().
Diffstat (limited to 'include/stc/cmap.h')
| -rw-r--r-- | include/stc/cmap.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/stc/cmap.h b/include/stc/cmap.h index 763764b7..5a55c3df 100644 --- a/include/stc/cmap.h +++ b/include/stc/cmap.h @@ -152,12 +152,6 @@ cx_memb(_emplace)(Self* self, i_keyraw rkey cx_MAP_ONLY(, i_valraw rmapped)) { return _res;
}
-STC_INLINE void
-cx_memb(_emplace_items)(Self* self, const cx_rawvalue_t arr[], size_t n) {
- for (size_t i=0; i<n; ++i) cx_SET_ONLY( cx_memb(_emplace)(self, arr[i]); )
- cx_MAP_ONLY( cx_memb(_emplace)(self, arr[i].first, arr[i].second); )
-}
-
STC_INLINE cx_result_t
cx_memb(_insert)(Self* self, i_key _key cx_MAP_ONLY(, i_val _mapped)) {
cx_result_t _res = cx_memb(_insert_entry_)(self, i_keyto(&_key));
|
