diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-01-02 00:23:24 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-01-02 00:23:24 +0100 |
commit | 62bb46a48cb9ecad96e1fe3591253243c2fb614e (patch) | |
tree | 07143b38e5bcbb2dad9e810b01a163b5ac3b464d /src/geset.h | |
parent | 6337f29dd5310fd3c471ee1261077e755c3c2c39 (diff) |
Add _empty() functions
Diffstat (limited to 'src/geset.h')
-rw-r--r-- | src/geset.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/geset.h b/src/geset.h index da463f2..a87692b 100644 --- a/src/geset.h +++ b/src/geset.h @@ -38,6 +38,7 @@ int n##_add(n_t *, t); \ bool n##_has(n_t *, t); \ size_t n##_size(n_t *); \ + bool n##_empty(n_t *); \ int n##_remove(n_t *, t); \ int n##_resize(n_t *, size_t); \ bool int_n##_key_iseq(t, t); \ @@ -92,6 +93,12 @@ return int_n##_size(set); \ } \ \ + bool \ + n##_empty(n_t *set) \ + { \ + return int_n##_empty(set); \ + } \ + \ int \ n##_remove(n_t *set, t e) \ { \ |