diff options
Diffstat (limited to 'include/stc/csmap.h')
| -rw-r--r-- | include/stc/csmap.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stc/csmap.h b/include/stc/csmap.h index cc7eeb49..204a6bb3 100644 --- a/include/stc/csmap.h +++ b/include/stc/csmap.h @@ -124,6 +124,12 @@ cx_memb(_with_capacity)(size_t size) { return tree;
}
+STC_INLINE void
+cx_memb(_copy)(Self *self, Self other) {
+ if (self->nodes == other.nodes) return;
+ cx_memb(_del)(self); *self = cx_memb(_clone)(other);
+}
+
STC_INLINE cx_rawvalue_t
cx_memb(_value_toraw)(cx_value_t* val) {
return cx_SET_ONLY( i_keyto(val) )
|
