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

Question about GD library
I am trying to make an image that shows a random quote from my database.


However I want t

grouping within a foreach?
hello all,

I currently have a list of products spit out from my db via a foreach loop. Right

array & querys help/advice.
Ok so here goes , I have a mysql database and basically here's what I need to do.

// foreach

trim function issues
Hi guys, total noob here...

So I've been tinkering around with a html and am using php to em

Getting rid of quotes when printing data
Hi Guys, I use the filter_var FILTER_SANITIZE_STRING to filter the textarea input. The function esca

php or sql?
Sorry not sure if this is a sql problem or php the following code is supposed to delete data from th

Using unserialize()
Hi there.

I have some data in my database that is serialized.

e.g.

a:2:{i:0

mail()
Hi all. I have a problem with emails. I am trying to set up a mail system where customers can subscr

Using two $_POST Function / Switch () statements, second does not work.
Hi all. I’m new to php and am having a problem getting $_POST Function / switch () to work. I

How to limit the calls to an API
Hello, in my simple script I call an api which effectively involves me getting an xml file.

H

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