Ejemplo n.º 1
0
int main()
{
    TVector<int> A;
	A.PrintStat();
	for (int i = 0; i < 35; ++i)
		A.push_back(i);
	A.PrintStat();
	for (int i = 0; i < 5; ++i)
		cout << " Pop: " << A.pop_back();
	cout << endl;
	A.PrintStat();
	A.swap(5,6);
	A.PrintStat();
	TVector<int> B = A;
	B.PrintStat();	
	A.clear();
	A.PrintStat();
    return 0;
}