API Reference > Other Classes > OdSmartPtr Template > OdSmartPtr Methods > OdSmartPtr::release Method
OdSmartPtr::release Method
Syntax
C++
void release();

Releases the smart pointer reference to the referenced object.

Decrements the reference counter of the referenced object. When the reference count reaches zero, the referenced object is deleted. Smart pointer is set to a NULL.

Example of a Typified Smart Pointer

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