ctl icon indicating copy to clipboard operation
ctl copied to clipboard

Optional overloadable support

Open rurban opened this issue 5 years ago • 0 comments

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

rurban avatar Jan 16 '21 18:01 rurban