2
0
mirror of https://github.com/boostorg/pool.git synced 2026-01-20 16:52:14 +00:00
Files
pool/test/cmake_test/main.cpp
James E. King III 91f484d9b6 Update CI
2024-11-29 16:25:18 +00:00

17 lines
285 B
C++

// this is the example from "Pool Interfaces" in the docs
#include <boost/pool/pool.hpp>
int main()
{
boost::pool<> p(sizeof(int));
for (int i = 0; i < 10000; ++i)
{
void * const t = p.malloc();
// do something with it
(t);
}
return 0;
}