C++通过list和template实现简单的对象池

2014-11-24 14:08:12 · 作者: · 浏览: 2

通过重载new和delete实现简单的对象池


一个简单的实现【编辑环境:Linux+Vi,编译环境:G++】:


C++语言:


运行结果: