ROOT
6.06/09
Reference Guide
|
To handle polymorphic TCoopPtr<POINTEE>
s, convert them to TCoopPtrTypeErased<POINTEE>
s and access them through their common base TCoopPtrTypeErasedBase
.
Example:
auto pH1D = MakeCoOwnedHist<1, double>({{{10, 0., 1.}}}); auto pH2I = MakeCoOwnedHist<2, int>({{{2, 0., 1.}, {2., 0., 1.}}}); std::vector<Internal::TCoopPtrTypeErased<TDrawable>> coOwnedDrawables {pH1D, pH2I};
The contained objects will be destructed once all TCoopPtrTypeErased and all other synchronized TCoopPtr
are destructed.
Definition at line 150 of file TCoopPtr.h.
Public Member Functions | |
virtual | ~TCoopPtrTypeErasedBase () |
#include <ROOT/TCoopPtr.h>
|
inlinevirtual |
Definition at line 151 of file TCoopPtr.h.