What’s the proper use of the unique_ptr?
I’m currently struggling understanding the purpose of unique_ptr
.
What’s the proper use of the uinque_ptr?
I’m currently struggling understanding the purpose of unique_ptr.
Why doesn’t a raw pointer and a smart pointer unique_ptr that are pointing to the same resource causes any issues? (C++)
I know that unique_ptr
makes the smart pointer own the resource and thus it doesn’t allow multiple pointers to point to the same resource.