請問C++ Class中 const static object 的life cycle

看板Programming作者 (陳揚和)時間17年前 (2008/09/18 14:44), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
想要在class中定義一個const static object. 就說string 如果在 Class C { const static string* foo; } const string foo = new string("hello"); 請問這個string何時被產生(占記憶體)何時被消滅呢 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 128.125.87.33
文章代碼(AID): #18qVZE8W (Programming)