Skip to content
forked from cacay/MemoryPool

About

MemoryPool注释

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

MemoryPool C98注释

* 实现时采用STL allocator的架构
* 用union定义每个Slot
* placement new在已有内存上构造对象
* reinterpret_cast<>()进行指针间的类型转换(slot* 和 value_type* )

详细分析在memory系统流程.docx

About

MemoryPool注释

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages