diff options
| author | Tyge Løvset <[email protected]> | 2021-11-03 11:51:10 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-11-03 11:51:10 +0100 |
| commit | 99979df6c500dbdea0ea7e202c7076db529d7e42 (patch) | |
| tree | 2e0468d5e099b72be8219ec763820125177a9d33 /include | |
| parent | e259ed7807dd9474cc94ba625db4dcd573431362 (diff) | |
| download | STC-modified-99979df6c500dbdea0ea7e202c7076db529d7e42.tar.gz STC-modified-99979df6c500dbdea0ea7e202c7076db529d7e42.zip | |
Update container_X_getmut() for mutable version.
Diffstat (limited to 'include')
| -rw-r--r-- | include/stc/cdeq.h | 2 | ||||
| -rw-r--r-- | include/stc/clist.h | 2 | ||||
| -rw-r--r-- | include/stc/cmap.h | 2 | ||||
| -rw-r--r-- | include/stc/csmap.h | 2 | ||||
| -rw-r--r-- | include/stc/cvec.h | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/cdeq.h b/include/stc/cdeq.h index 2cdedcd8..4e35a569 100644 --- a/include/stc/cdeq.h +++ b/include/stc/cdeq.h @@ -183,7 +183,7 @@ _cx_memb(_get)(const _cx_self* self, i_valraw raw) { }
STC_INLINE _cx_value*
-_cx_memb(_mutget)(_cx_self* self, i_valraw raw)
+_cx_memb(_getmut)(_cx_self* self, i_valraw raw)
{ return (_cx_value *) _cx_memb(_get)(self, raw); }
STC_INLINE void
diff --git a/include/stc/clist.h b/include/stc/clist.h index 5ae56634..93e8c249 100644 --- a/include/stc/clist.h +++ b/include/stc/clist.h @@ -172,7 +172,7 @@ _cx_memb(_get)(const _cx_self* self, i_valraw val) { }
STC_INLINE _cx_value*
-_cx_memb(_mutget)(_cx_self* self, i_valraw val) {
+_cx_memb(_getmut)(_cx_self* self, i_valraw val) {
return _cx_memb(_find_in)(_cx_memb(_begin)(self), _cx_memb(_end)(self), val).ref;
}
diff --git a/include/stc/cmap.h b/include/stc/cmap.h index cccf3199..100f93f6 100644 --- a/include/stc/cmap.h +++ b/include/stc/cmap.h @@ -177,7 +177,7 @@ _cx_memb(_get)(const _cx_self* self, i_keyraw rkey) { }
STC_INLINE _cx_value*
-_cx_memb(_mutget)(const _cx_self* self, i_keyraw rkey)
+_cx_memb(_getmut)(const _cx_self* self, i_keyraw rkey)
{ return (_cx_value*) _cx_memb(_get)(self, rkey); }
STC_INLINE _cx_iter
diff --git a/include/stc/csmap.h b/include/stc/csmap.h index 4eedb60d..a42bd030 100644 --- a/include/stc/csmap.h +++ b/include/stc/csmap.h @@ -116,7 +116,7 @@ STC_INLINE bool _cx_memb(_contains)(const _cx_self* self, i_keyraw rkey) { _cx_iter it; return _cx_memb(_find_it)(self, rkey, &it) != NULL; }
STC_INLINE const _cx_value* _cx_memb(_get)(const _cx_self* self, i_keyraw rkey)
{ _cx_iter it; return _cx_memb(_find_it)(self, rkey, &it); }
-STC_INLINE _cx_value* _cx_memb(_mutget)(_cx_self* self, i_keyraw rkey)
+STC_INLINE _cx_value* _cx_memb(_getmut)(_cx_self* self, i_keyraw rkey)
{ _cx_iter it; return _cx_memb(_find_it)(self, rkey, &it); }
STC_INLINE _cx_self
diff --git a/include/stc/cvec.h b/include/stc/cvec.h index 2e1dcd6e..8c213e8a 100644 --- a/include/stc/cvec.h +++ b/include/stc/cvec.h @@ -205,7 +205,7 @@ _cx_memb(_get)(const _cx_self* self, i_valraw raw) { }
STC_INLINE _cx_value*
-_cx_memb(_mutget)(const _cx_self* self, i_valraw raw)
+_cx_memb(_getmut)(const _cx_self* self, i_valraw raw)
{ return (_cx_value*) _cx_memb(_get)(self, raw); }
STC_INLINE _cx_iter
|
