Code has been added to clipboard!
The std::shared_ptr: Smart Pointer
Example
// Syntax to follow:
std::shared_ptr<data_type> p(new data_type);
// A basic example:
std::shared_ptr<int> p1(new int);
Code has been added to clipboard!
// Syntax to follow:
std::shared_ptr<data_type> p(new data_type);
// A basic example:
std::shared_ptr<int> p1(new int);