Compare commits
2 Commits
6cd26d5ee9
...
1cfbcffe94
Author | SHA1 | Date | |
---|---|---|---|
1cfbcffe94 | |||
9f68be78db |
@ -3,6 +3,9 @@ project(allocPool)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 23)
|
||||
|
||||
add_compile_options(-fsanitize=address)
|
||||
add_link_options(-fsanitize=address)
|
||||
|
||||
add_executable(allocPool main.cpp
|
||||
allocPool.hpp
|
||||
tests.cpp
|
||||
|
@ -24,6 +24,11 @@ public:
|
||||
initArray(defaultAllocNumbers);
|
||||
}
|
||||
|
||||
~allocPool() {
|
||||
for (auto i: vec)
|
||||
delete i;
|
||||
}
|
||||
|
||||
T *getPtr() {
|
||||
if (pivot == 0)
|
||||
resizeVec();
|
||||
|
Loading…
Reference in New Issue
Block a user