smart-pointers
smart pointers in windows programming
Excluding STL, I only found CComPtr in C++ windo开发者_如何学Gows programming. Is there any other types of smart pointers in windows SDK? Thanks.First, STL\'s and boost\'s smart pointers are available[详细]
2023-02-26 08:21 分类:问答Smart pointer and external code interaction via JNI
I\'m wondering what the best way is to have a pointer (via memory address) to an object in a C++ library which makes liberal use of smart pointers (ns-3). At the moment, I use path-based lookup and I\[详细]
2023-02-25 03:12 分类:问答Boost scoped_ptr / scoped_array with custom deleter
I don\'t see how to get scoped_ptr or scoped_array to use a custom deleter. Maybe there开发者_如何学Python is another implementation which allows controlled deletion similar to shared_ptr?[详细]
2023-02-24 23:45 分类:问答QScopedArrayPointer guarding my data but it is still leaking
#include <QScopedArrayPointer> #include <QDebug> #include <stdexcept> class MyData{ public:[详细]
2023-02-24 21:36 分类:问答SmartPointer : cast between base and derived classes
Say you have a function like this : SmartPtr<A> doSomething(SmartPtr<A> a); And classes like this :[详细]
2023-02-24 05:27 分类:问答Deletion of pointer to incomplete type and smart pointers
When trying to use an auto_ptr with a type that was declared with forward-declaration, like this: class A;[详细]
2023-02-24 00:37 分类:问答boost Shared_pointer NULL
I\'m using reset() as a default value for my shared_pointer (equivalent to a NULL). But how do I check if开发者_如何学Python the shared_pointer is NULL?[详细]
2023-02-23 02:42 分类:问答GDB warning: RTTI symbol not found for class
I use Eclipse with GDB. For any smart pointer class I have such as a MyString, I keep getting warning: RTTI symbol not found for class MyString[详细]
2023-02-23 01:14 分类:问答Safely contain arbitrary data in a smart pointer
First off: I searched half the web to find an answer with this as a solution that came closest. It is, however, too heavyweight for me though so I am looking a little less complex.[详细]
2023-02-21 22:33 分类:问答Is there a C++/CLI smart pointer project (e.g. scoped_ptr)?
Is there a C++/CLI RAII smart pointer class for containment of a native pointer in a managed type?Just wondering, before I go write my own clr_scoped_ptr value class template.[详细]
2023-02-20 09:01 分类:问答