Deleting pointers froms vector?


Posted on 16th Feb 2014 07:03 pm by admin

Hi. I have a vector filled with pointers and I want to delete the pointers. I could do a loop and do delete on all indexes, but my question is that if I just clear the vector. Are the pointers deleted, that is can the memory block that the pointer was pointing to be overwritten?
No comments posted yet

Your Answer:

Login to answer
281 Like 19 Dislike
Previous forums Next forums
Other forums

Sequre login with cookies.
I want to build secure login with cookies. I just want your ideas about this, your suggestions. What

How to display random record from table?
I have the following code:

Code: <?php
$display_block .= "<input type=

Hi, explode and strstr.
Hi, I seem to be confused about the strstr function, eg. i have a string like:
"a.b.c.d.e.f&

passing an array of objects after submit
How do I do this? This is what I have tried and it is not working.

<form method="

add text and number image
hi guys ..

ok see i want the user to add their name and pick a number then click get it and i

Expandable Post Code
Hi,

Hope you can help. Which currently I haven't upgraded to connect to a mysql server, so i

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

IP question
ive got 2 ip addresses both global from same user how would i detect if they are local to each other

XML Grouping
I'm using xml_parse_into_struct to get all my elements, but now I need to group them. For example, h

Last Weeks sDate and eDate.
sDate - Start Date
eDate - End Date

I need to pull two dates for "Last Week" whi

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash