摘要:
智能指针中de-> class Entity{ public: int x; public: void Print(){ std::cout<<"Hello Entity!"<<std::endl; } }; class scopedPtr{ private: Enity* m_Entity; pu 阅读全文
posted @ 2023-09-07 14:56
iu本u
阅读(12)
评论(0)
推荐(0)
摘要:
使用智能指针删除堆上分配的内存,而不用delete class Entity{ public: int x; public: void Print(){ std::cout<<"Hello Entity!"<<std::endl; } }; class scopedPtr{ private: Eni 阅读全文
posted @ 2023-09-07 14:52
iu本u
阅读(12)
评论(0)
推荐(0)

浙公网安备 33010602011771号