内存池
holidaywu
这个作者很懒,什么都没留下…
展开
-
对象池
对象池头文件CELLObjectPool.h#ifndef _CELLObjectPool_hpp_#define _CELLObjectPool_hpp_#include<stdlib.h>#include<iostream>#include<mutex>#include<assert.h>using namespace std;...原创 2020-09-23 20:12:20 · 106 阅读 · 0 评论 -
智能指针
#include<iostream>#include"Alloctor.h"#include<memory>//智能指针的库class A {public: A(){ Anum = 0; printf("A created\n"); } ~A(){ printf("A deleted\...原创 2020-09-23 20:13:39 · 90 阅读 · 0 评论 -
内存池
内存池主要文件:MemoryMgr.h#ifndef _MemoeyMgr_hpp_#define _MemoeyMgr_hpp_#include<stdlib.h>#include<assert.h>#include<iostream>#define MAX_MEMORY_SIZE 128class MemoryAlloc;cla...原创 2020-09-23 20:14:25 · 122 阅读 · 0 评论