Search code examples
how to overcome make_shared constness...


c++boostshared-ptr

Read More
How to initialize shared_ptr not knowing its type?...


c++shared-ptrmake-shared

Read More
Can I reset shared_ptr without deleting object so that weak_ptr loses a reference to it...


c++shared-ptrweak-ptr

Read More
C++ make::shared wrapping on existing raw pointer...


c++shared-ptr

Read More
How to initialize a shared_ptr to a QTextCodec in my constructor?...


c++qtstdshared-ptr

Read More
Get the last element from a std::vector...


c++shared-ptr

Read More
Is it possibile to call virtual methods with shared pointers?...


c++polymorphismshared-ptr

Read More
Alternatives of static_pointer_cast for unique_ptr...


c++c++11castingshared-ptrunique-ptr

Read More
convert const std::shared_ptr<const T> into boost::shared_ptr<T>...


c++boostconstantsshared-ptr

Read More
Captured shared_ptr released while executing the lambda body...


c++lambdashared-ptr

Read More
How to get a reference to an object having shared_ptr to it?...


c++shared-ptr

Read More
Can you allocate an array with something equivalent to make_shared?...


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

Read More
How to avoid shared pointers in C++ caused by try/catch?...


c++referencetry-catchshared-ptr

Read More
Cannot erase a shared_ptr from set...


c++setshared-ptr

Read More
What type is used by std::allocate_shared to allocate memory?...


c++c++11shared-ptrdynamic-memory-allocationallocator

Read More
Shared_ptr instance is not set for an object as expected...


c++c++17c++14shared-ptr

Read More
Should I delete pointer from `new` passed to a function which makes into a `shared_ptr`?...


c++c++14shared-ptr

Read More
Error spotted in C++ Primer 5th edition shared_ptr<int>...


c++c++11c++14shared-ptrerrata

Read More
How to implement RAII of CUDA API type cudaEvent_t using shared_ptr...


cudashared-ptrraii

Read More
std::unique_ptr and std::shared_ptr as parameters for virtual functions...


c++interfaceheap-memoryshared-ptrunique-ptr

Read More
Memory corruption when removing elements from a vector of shared pointers...


c++shared-ptrstdvector

Read More
Is heap allocated object guaranteed to be alive when it is returned from a function with std::shared...


c++c++11heap-memoryshared-ptr

Read More
Is it possible that `shared_ptr::use_count() == 0` and `shared_ptr::get() != nullptr`?...


c++multithreadingc++11shared-ptrlifetime

Read More
Why shared_ptr object works well without lock in such case?...


c++multithreadingc++11shared-ptr

Read More
shared_ptr Assertion px != 0 failed...


shared-ptrboost-thread

Read More
Why doesn't `static_pointer_cast` work with ADL, but requires explicit `std::`?...


c++shared-ptrargument-dependent-lookupunqualified-name

Read More
Shared pointer to array in pool-allocated memory...


c++c++17shared-ptrallocator

Read More
using a shared_ptr object in constructor works but not in destructor...


c++pointersshared-ptr

Read More
pass stack variable to function that takes a std::shared pointer...


c++shared-ptr

Read More
BindingError: Passing raw pointer to smart pointer is illegal...


c++shared-ptrwebassemblyemscriptenembind

Read More
BackNext