summaryrefslogtreecommitdiffhomepage
path: root/include/stc/clist.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-09 00:14:50 +0200
committerTyge Løvset <[email protected]>2022-04-09 00:14:50 +0200
commit1a4223837d4e34a085f00e323759ee5f9cd81bd3 (patch)
tree9be8cb543c9043fa885e511b86595c91ea1f4fc5 /include/stc/clist.h
parent03065ed6ef93f88003cd6754ca4d50ba20a76ebd (diff)
downloadSTC-modified-1a4223837d4e34a085f00e323759ee5f9cd81bd3.tar.gz
STC-modified-1a4223837d4e34a085f00e323759ee5f9cd81bd3.zip
Universally added a put() function to all containers.
Diffstat (limited to 'include/stc/clist.h')
-rw-r--r--include/stc/clist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stc/clist.h b/include/stc/clist.h
index 5591c93a..54eb6801 100644
--- a/include/stc/clist.h
+++ b/include/stc/clist.h
@@ -125,6 +125,8 @@ STC_INLINE _cx_iter _cx_memb(_emplace)(_cx_self* self, _cx_iter it, i_valraw
#endif
#endif
+STC_INLINE _cx_value* _cx_memb(_put)(_cx_self* self, i_val value)
+ { return _cx_memb(_push_back)(self, value); }
STC_INLINE _cx_self _cx_memb(_init)(void) { return c_make(_cx_self){NULL}; }
STC_INLINE bool _cx_memb(_reserve)(_cx_self* self, size_t n) { return true; }
STC_INLINE bool _cx_memb(_empty)(_cx_self cx) { return cx.last == NULL; }