|
-
January 31st, 2006, 03:44 PM
#1
std::vector simple scope question
hey folks,
i wanted to verify that it is pointless to .clear() a vector if it is going to go out of scope anyway. the vector has data in it but im assuming the memory is cleared for it anyways when the vector goes out of scope. the vector is declared as "auto" in my function; it is not static. (obviously i didnt use the auto keyword lol i just wanted to emphasize its not static..)
no emergency here but any advice would be great.
regards,
-c0ldshadow
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|