Deleting string object in C++
<p>I have a string object in my C++ program declared as follows:</p>

<pre><code>string str;
</code></pre>

<p>I have copied some data into it and done some operations. Now I want to delete the str object from the memory. I am not able to use delete operator since str is not a pointer. How do I delete that object from the memory to reclaim the memory allocated to it?</p>

<p>Thanks,
Rakesh.</p>
