Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdRxObjectPtr::attach Method
Syntax
C++
void attach(const OdRxObject* pObject);

Assigns the pointer of the specifed object to the smart pointer without incrementing its reference counter. 

 

Parameters
Description
pObject
[in] Pointer to the specified object to be assigned.

The reference count of the specified object is not incremented. 

If this SmartPointer is currently referencing another object, that object is released prior to the assignment.

Example of a Non-Typified Smart Pointer

Copyright © 2002-2022. Open Design Alliance All rights reserved.