Added missing flags and tests

This commit is contained in:
Leonardo committed 2020-03-11 15:10:52 -03:00
1 parent f3192b731b
commit 01b8bee8b1
5 files changed
+44 -1

No files matched your search

+4
View File
@@ -894,11 +894,15 @@ struct cmc_callbacks_bidimap
\
bool PFX##_contains_key(struct SNAME *_map_, K key) \
{ \
_map_->flag = cmc_flags.OK; \
\
return PFX##_impl_get_entry_by_key(_map_, key) != NULL; \
} \
\
bool PFX##_contains_val(struct SNAME *_map_, V val) \
{ \
_map_->flag = cmc_flags.OK; \
\
return PFX##_impl_get_entry_by_val(_map_, val) != NULL; \
} \
\
+2
View File
@@ -1015,6 +1015,8 @@ struct cmc_callbacks_multimap
\
bool PFX##_contains(struct SNAME *_map_, K key) \
{ \
_map_->flag = cmc_flags.OK; \
\
return PFX##_impl_get_entry(_map_, key) != NULL; \
} \
\