boost android

来源:互联网 发布:java 返回list泛型 编辑:程序博客网 时间:2024/05/07 20:36

在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;
}

0 0