中国地质大学(武汉)地理与信息工程学院
2024 年 5 月 20 日
目录
https://www.cnblogs.com/lidabo/p/3987382.html
一、引言....................................................................................................................................................3
二、内存池技术概述 ...............................................................................................................................3
三、APR 库中的内存池技术 ....................................................................................................................3
四、APR 和 APR-UTIL 的基本约定 ..........................................................................................................3
4.1 参考手册:API 文档和 Doxygen .............................................................................................4
4.2 命名空间 ..................................................................................................................................4
4.3 声明的宏 ..................................................................................................................................4
4.5 条件编译 ..................................................................................................................................4
五、apr_pool 内存池 ..............................................................................................................................4
5.1 内存池的结构 ..........................................................................................................................5
5.2 内存分配与释放 ......................................................................................................................5
5.3 常用的 API 函数 ......................................................................................................................5
六、总结....................................................................................................................................................6
csdn
一、引言....................................................................................................................................................7
二、内存池简介........................................................................................................................................7
三、常见 C++内存池实现方案 ................................................................................................................7
四、STL 内存分配器 ................................................................................................................................8
五、STL allocator 简介 ........................................................................................................................8
六、STL allocator 接口 ........................................................................................................................8
七、STL allocator 实现 ........................................................................................................................9
八、自定义 allocator ............................................................................................................................9
九、mt allocator 的组成 ......................................................................................................................9
十、pool 内存池 ......................................................................................................................................9
十一、object_pool 内存池 ..................................................................................................................10
十二、singleton_pool 概述 ................................................................................................................10
12.1singleton_pool 的用途 .......................................................................................................10
十三、pool_alloc 概述 ........................................................................................................................10
十四、总结..............................................................................................................................................11