Sign in to follow this  
SelethD

How do I properly... dispose of a vector<>

Recommended Posts

SelethD    456
I have always used ... unsigned char* when needing to read in bytes...
however, I am using an API that requires me to use a vector.

So this is what I have in my objects .h file


std::vector<unsigned char> image;

Question is... what do I put in my destructor? Do I need to delete it, dispose it, clear it, take it to dinner and a movie? What?

Thanks.

Share this post


Link to post
Share on other sites
Bregma    9214
[quote name='SelethD' timestamp='1353545100' post='5003072']
Do I need to delete it, dispose it, clear it, take it to dinner and a movie?
[/quote]
You can take it to dinner and a movie, but don't feel you have to. Like most dates, if you just ignore it completely eventually it will go away and leave you to get back to productive programming.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this