摘要:
最近使用Boost.Flyweight测试了一下,真的是非常的节省内存。(在WINDOWS下面做的测试)废话少说,直接上例子:#include <boost/flyweight.hpp>#include <string>#include <vector>using namespace std;void LogUnitTest::flyweightTest(){char tmp[10];vector< boost::flyweight<string> > boost_v;for(int i =0;i< 10000000;i++){ 阅读全文
posted @ 2011-09-23 11:07 张武生 阅读(1461) 评论(0) 推荐(1)
浙公网安备 33010602011771号