請問C++ Class中 const static object 的life cycle
想要在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
Programming 近期熱門文章
PTT數位生活區 即時熱門文章