Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ get pointer from unique_ptr

#include <memory>

std::unique_ptr<int> myUniquePtr = std::unique_optr<int>(new int(5));
int* rawPtr = myUniquePtr.get();
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #pointer
ADD COMMENT
Topic
Name
9+8 =