3 ms·
I built Pottery, a C template library. It provides vectors, hash tables, binary search trees, priority queues, sort algorithms, etc. https://github.com/ludocod
by ludocode 5y ago
I built Pottery, a C template library. It provides vectors, hash tables, binary search trees, priority queues, sort algorithms, etc.
https://github.com/ludocode/pottery https://github.com/ludocode/pottery
These templates are composable: high-level templates are implemented using lower-level ones. It also supports custom lifecycle functions, so you can tell containers how to copy, move, destroy your values; it supports custom array access functions, so you can use algorithms like sort or heap over a generalized array that may not be contiguous in memory; and more.
There is still nothing else like it as far as I know. The closest alternative is CTL but it doesn't have any of those features:
https://github.com/glouw/ctl/ https://github.com/glouw/ctl/