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++

 

Guess you like

Origin www.cnblogs.com/wordchao/p/11024715.html