summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-04-16 17:12:14 +0200
committerTyge Løvset <[email protected]>2022-04-16 17:12:14 +0200
commit57de677b5b00e0aa75772d6b5fe6347edbe03ffd (patch)
tree60a64fdddf439c6d457211ed8b176c6a08a3ade1 /include/stc/cstack.h
parent9723c34b18448cd28b10ac70d10f8bc156e6874f (diff)
downloadSTC-modified-57de677b5b00e0aa75772d6b5fe6347edbe03ffd.tar.gz
STC-modified-57de677b5b00e0aa75772d6b5fe6347edbe03ffd.zip
Added at_mut() to some containers. Added put_r() to cmap, csmap as alias for emplace_or_assign().
Diffstat (limited to 'include/stc/cstack.h')
-rw-r--r--include/stc/cstack.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h
index caa934df..b33319c5 100644
--- a/include/stc/cstack.h
+++ b/include/stc/cstack.h
@@ -98,6 +98,8 @@ STC_INLINE void _cx_memb(_pop_back)(_cx_self* self)
STC_INLINE const _cx_value* _cx_memb(_at)(const _cx_self* self, size_t idx)
{ assert(idx < self->size); return self->data + idx; }
+STC_INLINE _cx_value* _cx_memb(_at_mut)(_cx_self* self, size_t idx)
+ { assert(idx < self->size); return self->data + idx; }
#if !defined _i_no_clone
#if !defined _i_no_emplace