测试
#include <iostream>
#include <functional>
#include <memory>
using namespace std;
class Test
{
public:
Test()
{
cout << "Test " << endl;
}
~Test()
{
cout << "~Test" << endl;
}
private:
int value_;
};
int main(int argc, const char * argv[])
{
// insert code here...
std::cout << "Hello, World! ";
std::shared_ptr<Test> ptr(new Test);
return 0;
}