std::allocator 与 allocator_traits 高层模型 | STL
本章覆盖:`std::allocator`;`std::allocator_traits`;rebind 的历史认知;allocate raw storage;construct / destroy 的版本演进;max_size;propagation traits;stateful allocator;container copy / move / swap 语义连接;库作者需要理解,普通使用者不应滥用。
本章知识点
std::allocatorstd::allocator_traits- rebind 的历史认知
- allocate raw storage
- construct / destroy 的版本演进
- max_size
- propagation traits
- stateful allocator
- container copy / move / swap 语义连接
- 库作者需要理解,普通使用者不应滥用