Search code examples
Find a pointer T* in std::unordered_set<std::unique_ptr> (C++20)...


c++unique-ptrc++20unordered-set

Read More
Should I use unique_ptr to keep class members?...


c++pointerssmart-pointersunique-ptr

Read More
list<unique_ptr<int[]>> giving error use of deleted function...


c++templatesunique-ptrmove-semantics

Read More
Is std::unique_ptr needed on abstract class whose derived class only has a std::function member and ...


c++c++20unique-ptrstd-functionvirtual-destructor

Read More
How works - Pointer / Unique_ptr without new...


c++pointersundefined-behaviorunique-ptr

Read More
Clang and gcc getting stuck over overloaded template function...


c++templatesinheritanceoverloadingunique-ptr

Read More
Initialize pointer(new uint8_t[height * width*3]) in one line...


c++pointersunique-ptr

Read More
Can I store a function's output parameter into a unique_ptr?...


c++c++11unique-ptr

Read More
requires expression gives compilation error instead of false for std::unique_ptr<void> in C++2...


c++c++20unique-ptrrequires-expression

Read More
Proper way to create unique_ptr that holds an allocated array...


c++linuxgccc++11unique-ptr

Read More
How to create a unique_ptr while guarding against implicit conversion in ctor?...


c++implicit-conversionunique-ptr

Read More
How to handle return of unique_ptr in trompeloeil RETURN expectations...


c++mockingsmart-pointersunique-ptrtrompeloeil

Read More
Is a unique_ptr with custom deleter never invoked when initialized with nullptr...


c++undefined-behaviorunique-ptr

Read More
How do I pass smart pointers into functions?...


c++c++11parameter-passingsmart-pointersunique-ptr

Read More
Is there any use for unique_ptr with array?...


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

Read More
Is std::unique_ptr an application of RAII?...


c++unique-ptr

Read More
Automatic template parameter deduction in unique_ptr and make_unique...


c++templatesunique-ptrtemplate-argument-deductionclass-template

Read More
Unable to std::format std::vector<std::unique_ptr<int>> in C++...


c++stdvectorunique-ptrc++23stdformat

Read More
How to assign the address of an existing object to a smart pointer?...


c++smart-pointersc++14unique-ptr

Read More
make_unique cannot access private constructor in static member...


c++unique-ptr

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


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

Read More
How to properly clone an object that contains a polymorphic object which may contain a vector to mor...


c++c++17polymorphismunique-ptr

Read More
How to fill an array of unique_ptr?...


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

Read More
How to get array size stored in unique_ptr?...


arraysc++11stdvectorunique-ptr

Read More
Recommended way to make std::unique_ptr of array type without value initialization?...


c++memory-managementsmart-pointersunique-ptr

Read More
Does assigning make_unique require std::move() to an empty unique_ptr?...


c++unique-ptrmove-semanticsstdmove

Read More
Aligned dynamic array and smart pointer...


c++c++11unique-ptrmemory-alignment

Read More
Confused about returning std::unique_ptr...


c++unique-ptrmove-semantics

Read More
pass std::unique_ptr to std::bind...


c++lambdabindmoveunique-ptr

Read More
How to capture a unique_ptr into a lambda expression?...


c++lambdac++11unique-ptr

Read More
BackNext