API Reference > Other Classes > OdClsIdSmartPtr Template > OdClsIdSmartPtr Methods > attach Method > OdClsIdSmartPtr::attach Method (OdRxObject*)
OdClsIdSmartPtr::attach Method (OdRxObject*)
Syntax
C++
inline void attach(OdRxObject* pObject);
Parameters 
Description 
OdRxObject* pObject 
[in] Pointer to the object to be assigned. 

Assigns the specified object to this SmartPointer object. 

 

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.

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