ctl
ctl copied to clipboard
Optional overloadable support
So that we can optionally drop the type prefixes, currently clang-only. https://clang.llvm.org/docs/AttributeReference.html#overloadable
// instead of
uset_int a = uset_int_init(NULL, NULL); // integral types have default methods
uset_int_insert(&a, 1);
// do
#define CTL_OVERLOADABLE
#define T int
#include <ctl/unordered_set.h>
uset_int a = uset_int_init(NULL, NULL);
insert(&a, 1);
See also _Generic support via #4