WPILibC++
unspecified
|
RefCountedBaseVPTR - A class that has the same function as RefCountedBase, but with a virtual destructor. More...
#include <IntrusiveRefCntPtr.h>
Protected Member Functions | |
RefCountedBaseVPTR (const RefCountedBaseVPTR &) | |
void | Retain () const |
void | Release () const |
Friends | |
template<typename T > | |
struct | IntrusiveRefCntPtrInfo |
RefCountedBaseVPTR - A class that has the same function as RefCountedBase, but with a virtual destructor.
Should be used instead of RefCountedBase for classes that already have virtual methods to enforce dynamic allocation via 'new'. Classes that inherit from RefCountedBaseVPTR can't be allocated on stack - attempting to do this will produce a compile error.