libcodr7 – fundamental collections in the spirit of C
source link: https://github.com/codr7/libcodr7
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
setup
libcodr7 requires a C99 compiler and CMake to build.
$ git clone https://github.com/codr7/libcodr7.git $ cd libcodr7 $ mkdir build $ cd build $ cmake .. $ sudo make install $ valgrind ./tests
list ( h / c )
An embedded, double linked list. Since one set of links is needed for each list, the maxiumum number of lists an item is placed in simultaneously needs to be static.
deque ( h / c )
A deque with value semantics and pool allocated items.
rbtree ( h / c )
A left leaning red/black tree with value semantics and pool allocated items.
examples
Besides the commented test suite , you may find some real world examples here .
license
support
Please consider a donation if you would like to support the project, every contribution helps.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK