Open Cstardust opened 2 years ago
https://cstardust.github.io/2022/04/16/sgi_stl%E4%BA%8C%E7%BA%A7%E7%A9%BA%E9%97%B4%E9%85%8D%E7%BD%AE%E5%99%A8/
一级空间配置器没有内存池。只是将对象的构造和内存的开辟分离开而已。二级空间配置器就是 一级空间配置器 + 基于freelist实现的内存池的结合SGI STL 二级空间配置器 原理图示 template class my_allocator{} 整体 _S_chunk_alloc 相关定义 SGI STL包含了一级空间配置器和
https://cstardust.github.io/2022/04/16/sgi_stl%E4%BA%8C%E7%BA%A7%E7%A9%BA%E9%97%B4%E9%85%8D%E7%BD%AE%E5%99%A8/
一级空间配置器没有内存池。只是将对象的构造和内存的开辟分离开而已。二级空间配置器就是 一级空间配置器 + 基于freelist实现的内存池的结合SGI STL 二级空间配置器 原理图示 template class my_allocator{} 整体 _S_chunk_alloc 相关定义 SGI STL包含了一级空间配置器和