Does this code leak memory, or is the allocated vector object cleaned up?
Code:void func(vector <int> veccie) { if(veccie.empty()) cout << "Empty" << endl; else cout << "size: " << veccie.size() << "\t veccie[0]: " << veccie[0] << endl; } int main(int argc, char *argv[]) { func(vector <int> (4, 23)); system("PAUSE"); return 0; }