A library of some basic container
git clone https://github.com/Flmpx/hmfocx.gitcmake ..makeyou can find a file named libhmfocx.a in the bin folder, this is a static library about this project
git clone https://github.com/Flmpx/hmfocx.git
cmake .. -G "MinGW Makefiles"
mingw32-makeI strongly suggest you to use cmake to clone, build and use this library(In that case, you can see comments of a function when you use this function)
# ...
include(FetchContent)
FetchContent_Declare(
hmfocx
GIT_REPOSITORY https://github.com/Flmpx/hmfocx.git # or git@github.com:Flmpx/hmfocx.git
GIT_TAG v0.14.0
)
FetchContent_MakeAvailable(hmfocx)
# ...
target_link_library(your_executable PRIVATE hmfocx)mkdir build
cd build
cmake ..
make- Introduction of containers
- The detained comment about functions of every containers
Trypart to will teach you how to calling this function- Some
Tip,NoteorWarningin it
| Struct Name | Fact |
|---|---|
| hm_list | List |
| hm_map | Hash Table(Map) |
| hm_pool | Memory Pool |
| hm_stack | Stack |
| hm_queue | Queue |
| hm_heap | Heap |
| hm_set | Hash Set |
| hm_arr | Array |
| hm_str | String |
The Container include the main container and it's iterator
- main format --
hm_{container}_{Other_1}_{Other_2}_ ... - All containers' name start with
hm_, like List's name --hm_list, and this is a flag of this library - And there have some
enumorstructin every container, like Map's entry name --hm_map_entry, some enum's name see comment of every function
- main format --
hm_{container}_{action}_{more info}_ ... - Like conatiner's name, it must start with
hm_ - The action include
init,insert,del,shrink,clear,freeand more...