test* create_test();

shared_ptr<test> create_test();//下面的接口比上面的接口要好
auto_ptr<test> create_test();
{
	shared_ptr<test> p(new test()); 
	return p;
}

  

相关文章:

  • 2022-12-23
  • 2021-10-01
  • 2021-10-08
  • 2022-12-23
  • 2022-02-25
  • 2021-08-31
  • 2022-02-03
  • 2021-08-27
猜你喜欢
  • 2021-05-18
  • 2021-06-25
  • 2022-12-23
  • 2021-08-05
  • 2022-01-29
  • 2021-07-08
  • 2021-12-20
相关资源
相似解决方案