We are committed to provide service 24 X 7

Deals, Shopping, Training, Tools

36
1.899.229,15

Cart

Tag: C++11 Smart Pointer – Part 2: shared_ptr and Custom Deletor

C++11 Smart Pointer – Part 2: shared_ptr and Custom Deletor

In this article we will discuss how to use custom deleter with std::shared_ptr. When a shared_ptr object goes out of scope, its destructor is called. Inside its destructor it decrements the reference count by 1 and if new value of reference count is 0 then it deletes the associated raw pointer. Advertisements To delete the …

C++11 Smart Pointer – Part 2: shared_ptr and Custom DeletorRead More

36
1.899.229,15

Cart