Search code examples
C++: unique_ptr vs auto_ptr, and advantages of unique_ptr over auto_ptr?...

c++unique-ptrauto-ptr

Read More
Correct usage of unique_ptr in class member...

c++c++11c++14unique-ptr

Read More
Filling of vector with unique_pointers...

c++vectorinitializationunique-ptrpush-back

Read More
emplace unique_ptr in list...

c++unique-ptr

Read More
Destructor called unexpectedly...

c++smart-pointersunique-ptr

Read More
Calling ::GetModuleHandleEx with unique_ptr having custom deleter to handle freeing resources automa...

c++windowsunique-ptrcustom-deleter

Read More
Warning: ignoring attributes on template argument... in declaration of std::unique_ptr (-Wignored-at...

c++posixunique-ptrgcc-warning

Read More
Unwanted copy constructor call when creating a shared_ptr...

c++c++17shared-ptrunique-ptr

Read More
Casting std::unique_ptr<uint8_t[]> to struct unique_ptr without losing uint8_t[] buffer...

c++castingunique-ptr

Read More
Why can you return a std::unique_ptr without std::move?...

c++c++11unique-ptrmove-semantics

Read More
Why am I seemingly allowed to copy std::unique_ptr in a return statement?...

c++g++c++11unique-ptr

Read More
Should I assign or reset a unique_ptr?...

c++c++11smart-pointersunique-ptr

Read More
dynamic_pointer_cast unexpected behaviour...

c++c++11unique-ptrmake-shared

Read More
Do smart pointers work with arrays allocated using new T[]?...

c++c++11new-operatorsmart-pointersunique-ptr

Read More
Does C++11 unique_ptr and shared_ptr able to convert to each other's type?...

c++c++11shared-ptrunique-ptr

Read More
Why is std::make_unique not implemented using list initialization?...

c++c++14unique-ptrlanguage-designlist-initialization

Read More
Cast vector data of unique_ptr to pointer to const pointer...

c++castingstdvectorunique-ptrstd

Read More
Indexing operator of an object owned by unique_ptr...

c++unique-ptrsubscript-operator

Read More
Why is shared_ptr<void> legal, while unique_ptr<void> is ill-formed?...

c++shared-ptrsmart-pointersunique-ptr

Read More
Can't use copy-initialization with multiple steps of implicit conversions...

c++initializationc++17implicit-conversionunique-ptr

Read More
Vector of polymorphic objects and unique_ptr...

c++polymorphismunique-ptrvirtual-destructor

Read More
Why unique-ptr doesn't check base class to virtual destructible?...

c++c++11polymorphismunique-ptrvirtual-destructor

Read More
Unexpected compile error when dealing with vector of unique_ptr<pure_virtual_class> inside std...

c++stdvectorunique-ptrstdmappure-virtual

Read More
Error on MSVC when trying to declare std::make_unique as friend of my templated class...

c++c++14unique-ptrfriend-functionmsvc12

Read More
How can I concatenate several vectors of unique pointers...

c++functional-programmingunique-ptrrange-v3value-categories

Read More
How I can fill a unique_ptr that is pointing to a char array?...

c++arraysunique-ptr

Read More
Passing unique_ptr with derived class causes SEGFAULT...

c++unique-ptrderived-class

Read More
Does std::move invalidate a raw pointer obtained from unique_ptr::get()?...

c++unique-ptr

Read More
Is there a way to share part of a shared_ptr in different ranges?...

c++c++17shared-ptrunique-ptr

Read More
How does the std::unique_ptr&& function argument work?...

c++pointersmemoryunique-ptrownership

Read More
BackNext