C-STL

A generic collection of STL-style macro classes written in C

MIT License

Stars
12

C-STL

C C++ STL(Standard Template Library) .

  • .
    C99. C99 (stdbool.h ) . ...

MIT . .



.  
  • decl_array : (compiletime static array).
  • decl_darray : (runtime dynamic fixed array).
  • decl_vector : (runtime dynamic mutable array).
  • decl_stack : (stack).
  • decl_queue : (queue).
  • decl_list : (linked list).
  • decl_forward_list : (single linked list).
  • decl_circular_lisr : (circular linked list).
  • decl_treeset : (tree set). Not Implemented
  • decl_treemap : (tree map). Not Implemented
  • decl_hashset : (hashtable set). Not Implemented
  • decl_hashmap : (hashtable map).
  • decl_maxheap : (max heap). Not Implemented
  • decl_minheap : (min heap). Not Implemented

C++ std::array decl_array, def_array . int 10 IntArray .

decl_array(IntArray, int, 10)
def_array(IntArray, int, 10)

decl_XXX .h . def_XXX .c . def_XXX .h .

 .  new    ,  .  
IntArray arr = new_IntArray();
  .  
   .
arr.find(&arr, 100);

. ArrayTest