This is a default C allocator wrapper for better memory management in node-based data structures
$ mkdir build
$ cd build
$ cmake ..
$ make
Add code below to your CMakeLists.txt and include "gobjpool.h"
FetchContent_Declare(
objpool
GIT_REPOSITORY https://github.com/Lord-KA/gObjPool.git
GIT_TAG release-1.X
)
if(NOT gobjpool_POPULATED)
FetchContent_Populate(gobjpool)
include_directories(${gobjpool_SOURCE_DIR})
endif()
You have to pre-define GOBJPOOL_TYPE
with macro or typedef
before including the header
- Generalized objPool structure with automatic refitting (reallocation)
- Unit Tests (gTest)
- CMake config
- Github release
- Basic Github CI
- Doxigen docs
- Check coverage
- Add C-style pseudo-templates