对象生命周期、storage 与 lifetime 的区别 | C++
本章覆盖:storage;object lifetime;automatic storage duration;static storage duration;thread storage duration;dynamic storage duration;object construction;object destruction;storage 存在不等于对象 lifetime 已开始;placement new 的后续连接;lifetime bug 是 C++ 内存错误核心来源之一。
本章知识点
- storage
- object lifetime
- automatic storage duration
- static storage duration
- thread storage duration
- dynamic storage duration
- object construction
- object destruction
- storage 存在不等于对象 lifetime 已开始
- placement new 的后续连接
- lifetime bug 是 C++ 内存错误核心来源之一