c++ catch raw pointer to unique_ptr code example
Example: c++ get pointer from unique_ptr
#include <memory>
std::unique_ptr<int> myUniquePtr = std::unique_optr<int>(new int(5));
int* rawPtr = myUniquePtr.get();
#include <memory>
std::unique_ptr<int> myUniquePtr = std::unique_optr<int>(new int(5));
int* rawPtr = myUniquePtr.get();