ctl
ctl copied to clipboard
My variant of the C Template Library
I have utilized CTL on the STM32E407 equipped with FreeRTOS; nevertheless, each instance whereby the deque is employed results in program paralysis. Through experimentation, I discerned an anomalous memory consumption...
In STL it is possible to define, e.g., ``` vector ev; vector evp; ``` After looking in the documentation, the code, and the examples I was not able to determine...
> u8string will get proper utf-8/unicode support, exceeding C++ STL. compare will check u8strings normalized to NFD. Please consider that very carefully. Normalization is destructive. E.g. both `Å` (U+00C5) and...
builds OK but failed to install on ubuntu 20.04. NOTE I ignored the first line "error" output below as the makefile has hard-coded g++ and ignores my `CXX?=g++-11` settings, which...
stanford is optimal for integers (i.e. literals divisible by 256), greg7mdp/parallel-hashmap for strings and structs. Converting swiss table or greg7mdp/parallel-hashmap from C++/SIMD might be too much work. stanford_hash is similar...
* small_vector (if small on stack) is a standard container since long. just not in std yet * sorted_vector is e.g. needed for hashmap security, with binary_search.
mandate `T_hash` to be defined, resp. `TK_hash`, beforehand. Don't call it indirectly. There's no need to dynamically change it, it needs to be compile-time. Similarily for the same for the...
This is generated from README.md but is formatted horribly. Either rewrite it simplier in docs, and change the formatting pipeline. Already tried pandoc and ronn. Also via html
So that we can optionally drop the type prefixes, currently clang-only. https://clang.llvm.org/docs/AttributeReference.html#overloadable ```C // instead of uset_int a = uset_int_init(NULL, NULL); // integral types have default methods uset_int_insert(&a, 1); //...
Use C11 `_Generic` type-specializers to get rid of the longer names, when requested. Thus `vec_int_init_from(&vec)` would be `vec_init_from(&vec)` or even `init_from(&vec)` We cannot make that optional as with integral methods,...