Code has been added to clipboard!

The std::unique_ptr Smart Pointer

Example
// Syntax to follow:
std::unique_ptr<data_type> p(new data_type);

// A basic example:
std::unique_ptr<int> p(new int);