//==============================================================================
// 215 Starter File for Lab #2: STL Vectors
// Spring 2006
//
// Replace this header with your own and rename the file as SmithLab2.cpp.
//==============================================================================

#include <iostream>
#include <vector>

using namespace std;

int main()
{
	vector<int> int_vector;

	cout << "Number of elements in vector A is: " << int_vector.size() << endl;
	cout << "Capacity of vector A before reallocation needed: ";
	cout << int_vector.capacity() << endl;
	cout << "Maximum size of vector A: " << int_vector.max_size() << endl;

	int_vector.push_back(1);
	int_vector.push_back(4);
	int_vector.push_back(6);

	cout << "Three elements added." << endl;

	cout << "Number of elements in vector A is: " << int_vector.size() << endl;
	cout << "Capacity of vector A before reallocation needed: ";
	cout << int_vector.capacity() << endl;
	cout << "Maximum size of vector A: " << int_vector.max_size() << endl;

	return 0;
}

/*

	When run it will yield output like this:

	Number of elements in vector A is: 0
	Capacity of vector A before reallocation needed: 0
	Maximum size of vector A: 1073741823 

	Three elements added.
	Number of elements in vector A is: 3
	Capacity of vector A before reallocation needed: 16
	Maximum size of vector A: 1073741823

*/