STL 为什么需要 Allocator | STL
本章覆盖:separation of storage allocation and object construction;allocator template parameter;container memory policy;default `std::allocator`;allocate;deallocate;allocator_traits;element construction;historical complexity;普通业务通常不需要自定义 allocator。
本章知识点
- separation of storage allocation and object construction
- allocator template parameter
- container memory policy
- default
std::allocator - allocate
- deallocate
- allocator_traits
- element construction
- historical complexity
- 普通业务通常不需要自定义 allocator