Original Post
Hello.
I am currently using vectors.
But i am unsure do i need to call myVector.clear before my application ends?
I am currently using vectors.
But i am unsure do i need to call myVector.clear before my application ends?
int main()
{
std::vector<int> tempVec;
int a = 55;
int b = 12;
tempVec.push_back(a);
tempVec.push_back(b);
//Do i need to call .clear at my tempVec here?
tempVec.clear()
//Or is it done automaticly at end of program?
return 0;
}