boost_pool 0.1.0

Boost C++ library boost_pool packaged using Zanbil
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// 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;
}