4
Std की घोषणा कैसे करें :: unique_ptr और इसका क्या उपयोग है?
मैं यह समझने की कोशिश std::unique_ptrकरता हूं कि कैसे काम करता है और उसके लिए मुझे यह दस्तावेज मिला । लेखक निम्नलिखित उदाहरण से शुरू होता है: #include <utility> //declarations of unique_ptr using std::unique_ptr; // default construction unique_ptr<int> up; //creates an empty object // initialize with an argument unique_ptr<int> uptr …
95
c++
pointers
std
unique-ptr