#include <memory> std::unique_ptr<int> myUniquePtr = std::unique_optr<int>(new int(5)); int* rawPtr = myUniquePtr.get();