Cpp: object lifetime

1.local scope, file scope

2.dynamic extent

3.local static objects

4.static class members

 

Reference:

1.Chapter 2,4, Essential C++

 

posted @ 2019-06-14 18:00  wordchao  阅读(142)  评论(0编辑  收藏  举报