summaryrefslogtreecommitdiffhomepage
path: root/include/stc/cstack.h
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-08 23:01:54 +0200
committerTyge Løvset <[email protected]>2021-09-08 23:01:54 +0200
commit180cc60feebea8126e1c2012092782b53e164648 (patch)
tree4fc404e25a4ad98ead3dd010cce26ab98840307b /include/stc/cstack.h
parent26152f06399506bf5bca823f42ed3089ce404aa8 (diff)
downloadSTC-modified-180cc60feebea8126e1c2012092782b53e164648.tar.gz
STC-modified-180cc60feebea8126e1c2012092782b53e164648.zip
Some docs on main page. Added emplace_items to cstack.
Diffstat (limited to 'include/stc/cstack.h')
-rw-r--r--include/stc/cstack.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/stc/cstack.h b/include/stc/cstack.h
index 984b8fad..ea116be2 100644
--- a/include/stc/cstack.h
+++ b/include/stc/cstack.h
@@ -84,6 +84,9 @@ STC_INLINE Self cx_memb(_clone)(Self v) {
return out;
}
+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_memb(_push)(self, i_valfrom(arr[i])); }
+
STC_INLINE i_val cx_memb(_value_clone)(cx_value_t val)
{ return i_valfrom(i_valto(&val)); }