¡@

Home 

c++ Programming Glossary: deleter

How to release pointer from boost::shared_ptr?

http://stackoverflow.com/questions/1525764/how-to-release-pointer-from-boostshared-ptr

http stackoverflow.com a 5995770 321013 You need to use a deleter that you can request not to delete the underlying pointer. ..

Detach a pointer from a shared_ptr? [duplicate]

http://stackoverflow.com/questions/1833356/detach-a-pointer-from-a-shared-ptr

source shared_ptr could have been created with a custom deleter. Two options you might consider You could use std tr1 shared_ptr..

Why does this program crash: passing of std::string between DLLs

http://stackoverflow.com/questions/2322095/why-does-this-program-crash-passing-of-stdstring-between-dlls

Without using wrappers like shared_ptr with a custom deleter. c dll memory allocation visual c share improve this question..

Is it a good practice to always use smart pointers?

http://stackoverflow.com/questions/2454214/is-it-a-good-practice-to-always-use-smart-pointers

after all that's what boost shared_ptr does for its deleter D template parameter. But I would not recommend it especially..

Type erasure techniques

http://stackoverflow.com/questions/5450159/type-erasure-techniques

use the type of the actual object passed for creating the deleter by default const shared_ptr void sp new A calls A ~A here Of..

How does weak_ptr work?

http://stackoverflow.com/questions/5671241/how-does-weak-ptr-work

reference count. BTW that counter object also stores the deleter. Every shared_ptr and weak_ptr contains a pointer to the actual.. than checking just one counter. Another reason is that the deleter must stay valid until it has finished executing. Since the deleter.. must stay valid until it has finished executing. Since the deleter is stored in the counter object that means the counter object..

Is std::unique_ptr<T> required to know the full definition of T?

http://stackoverflow.com/questions/6012157/is-stdunique-ptrt-required-to-know-the-full-definition-of-t

The reasons are obscure having to do with a dynamic deleter vs a static deleter. The precise reasons aren't important. In.. obscure having to do with a dynamic deleter vs a static deleter. The precise reasons aren't important. In fact in most code..

Well, how does the custom deleter of std::unique_ptr work?

http://stackoverflow.com/questions/8274451/well-how-does-the-custom-deleter-of-stdunique-ptr-work

how does the custom deleter of std unique_ptr work According to N3290 std unique_ptr accepts.. work According to N3290 std unique_ptr accepts a deleter argument in its constructor. However I can't get that to work.. of it is incomplete or wrong I can't see the point of a deleter argument that's apparently ignored so can anyone provide a working..

Which kind of pointer do I use when?

http://stackoverflow.com/questions/8706192/which-kind-of-pointer-do-i-use-when

which is not copyable and for which you can not specify a deleter. std unique_ptr is boost scoped_ptr on steroids and should be.. when you need a smart pointer . It allows you to specify a deleter in its template arguments and is movable unlike boost scoped_ptr..

Why isn't there a std::shared_ptr<T[]> specialisation?

http://stackoverflow.com/questions/8947579/why-isnt-there-a-stdshared-ptrt-specialisation

is not available so it is necessary to to provide a deleter which correctly calls delete void func Usage shared_ptr array..