本文演示瞭如何在C++ 中顯式呼叫解構函式. ... public: explicit MyClass(string s): str(std::move(s)) { cout << "Constructor 1 executed\n"; } ...
確定! 回上一頁