API Reference > Other Classes > OdSharedPtr Template > OdSharedPtr Methods > OdSharedPtr::detach Method
OdSharedPtr::detach Method
Syntax
C++
T* detach();

Detaches referenced object from the pointer. Warning: this method may be used only if reference count is 1 (i.e. when this pointer is the single owner of the referenced object)

Copyright © 2002–2020. Open Design Alliance. All rights reserved.