Search code examples
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
c++ change object properties of object that is key in map?...

c++hashmapc++17shared-ptr

Read More
Pure virtual call from another thread using shared pointer...

c++multithreadingshared-ptr

Read More
Bad_weak_ptr caused by call to shared_from_this with multiple inheritence...

c++shared-ptrmultiple-inheritanceambiguousenable-shared-from-this

Read More
Is shared_ptr<void>::reset() lock-free?...

c++shared-ptrlock-free

Read More
Memory leak using shared_ptr...

c++shared-ptr

Read More
Point raw pointer to a shared_ptr...

c++oopinheritancepolymorphismshared-ptr

Read More
Is there might be memory leak to allocate shared_ptr on the heap?...

c++memory-leaksheap-memoryshared-ptr

Read More
LRU with shared_ptr in multi-threaded environment...

c++c++17shared-ptr

Read More
How to assign a reference to a shared pointer to another shared pointer...

c++shared-ptr

Read More
Raw pointer to shared_ptr bug...

c++c++17shared-ptrsmart-pointers

Read More
How to "reassign" a shared_ptr<base> to a new derived object...

c++vectorpolymorphismshared-ptr

Read More
Seeing unexpected data on a shared pointer...

c++shared-ptr

Read More
I put a shared_ptr into a map, but why is the object destructed before the program ends?...

c++shared-ptrstdmap

Read More
problem with operator[] when trying to access a vector of shared_ptr...

c++c++11vectorshared-ptr

Read More
smart pointer as argument of function which uses std::function, std::bind...

c++shared-ptrenable-shared-from-this

Read More
making vectors of an object independent of each other...

c++c++11vectorshared-ptrcopy-constructor

Read More
What happens when we reset a shared_ptr when there are other shared_ptr alias constructed from it?...

c++shared-ptrsmart-pointers

Read More
BackNext