在android上使用boost,尚未驗證
http://blog.csdn.net/andyhuabing/article/details/8594679
boost pool簡單使用
#include "stdafx.h"
#include <boost/pool/pool.hpp>
int _tmain(int argc, _TCHAR* argv[])
{
boost::pool<> po(4);
for( int i = 0; i < 1000; i++ )
{
char* p = (char*)po.malloc();
char* pp = po.free
}
return 0;
}