c++ - How operator new calls the constructor of class? - Stack Overflow

c++ - How operator new calls the constructor of class? - Stack Overflow

瀏覽:1208
日期:2025-10-03
It's not really the new operator that calls the constructor. It is more the compiler that translate the following line: MyClass * mine = new MyClass();....看更多