DCMTK
Version 3.6.1 20170228
OFFIS DICOM Toolkit
|
internal class, don't ever use this directly! This is needed to make the following code work: More...
Public Member Functions | |
OFauto_ptr_ref (T *p) | |
constructs a OFauto_ptr_ref from a pointer. More... | |
Public Attributes | |
T * | ptr |
the pointer that it's all about | |
internal class, don't ever use this directly! This is needed to make the following code work:
OFauto_ptr<X> func() { return new X; } OFauto_ptr<X> local_var = func();
The compiler will add implicit casts to OFauto_ptr_ref to make this work:
OFauto_ptr<X> func() { return OFauto_ptr_ref<X>(new X); } OFauto_ptr<X> local_var = OFstatic_cast(OFauto_ptr_ref<X>, func());
|
inlineexplicit |
constructs a OFauto_ptr_ref from a pointer.
p | the pointer to use. |