会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
晚晴小筑
Talk is cheap. Show me the code.
博客园
首页
新随笔
联系
订阅
管理
2013年11月26日
non-local static 变量初始化顺序不确定,带来的问题
摘要: 所谓static对象,其寿命从被构造出来直到程序结束为止,因此stack和heap-based对象都被排除。这种对象包括global对象、定义于namespace作用域内的对象,classes内、在函数内、以及在file作用域内被声明为static的对象。函数内的static对象称为local...
阅读全文
posted @ 2013-11-26 23:18 N3verL4nd
阅读(540)
评论(0)
推荐(0)
公告