boost android

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章