| Cleanup | R Documentation |
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.
Cleanup()
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.
No return value. Called for side effects.
# Assuming you have previously initialized the Cmpp object with `Initialize()`
Cleanup()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.