placement new、显式析构与底层对象构造边界 | C++
本章覆盖:placement new;raw storage;object construction in storage;explicit destructor call;allocator / container 实现背景;alignment;lifetime rule;普通业务代码极少直接使用;错误使用容易造成 UB;作为理解 STL allocator / memory pool 的前置知识。
本章知识点
- placement new
- raw storage
- object construction in storage
- explicit destructor call
- allocator / container 实现背景
- alignment
- lifetime rule
- 普通业务代码极少直接使用
- 错误使用容易造成 UB
- 作为理解 STL allocator / memory pool 的前置知识