API Reference > OdRx Classes > OdRxObjectPtr Class > OdRxObjectPtr Methods > OdRxObjectPtr::detach Method
OdRxObjectPtr::detach Method
Syntax
C++
OdRxObject* detach();

Returns the raw pointer to the referenced object. The reference counter is not modified for the referenced object. Smart pointer is set to a NULL.

Releases the smart pointer reference to the referenced object without decrementing of the reference counter.

Example of a Non-Typified Smart Pointer

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