diff options
| author | Tyge Løvset <[email protected]> | 2021-09-08 23:01:54 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-09-08 23:01:54 +0200 |
| commit | 180cc60feebea8126e1c2012092782b53e164648 (patch) | |
| tree | 4fc404e25a4ad98ead3dd010cce26ab98840307b /include/stc/cstack.h | |
| parent | 26152f06399506bf5bca823f42ed3089ce404aa8 (diff) | |
| download | STC-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.h | 3 |
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)); }
|
