Cleanup {cmpp} | R Documentation |
Clean up memory by deleting the pointer to the Cmpp instance
Description
This function is used to clean up and delete the instance of the Cmpp class in
the C++ code. It ensures proper memory management and prevents memory leaks by
deleting the pointer to the Cmpp
object when it is no longer needed.
It is important to call this function after you are done with the Cmpp
object
to ensure that no memory is leaked.
Usage
Cleanup()
Details
The Cleanup
function must be called after using the Cmpp
object to clean up
the allocated memory in C++. Failure to call this function may result in memory
leaks, as the memory allocated for the Cmpp
object is not automatically freed.
Value
No return value. Called for side effects.
Examples
# Assuming you have previously initialized the Cmpp object with `Initialize()`
Cleanup()
[Package cmpp version 0.0.2 Index]