#include <iostream>
#include <vector>

int main() {
	using std::cout;
	using std::vector;
	
	// Create a vector with values 1 .. 10
	vector<int> v(10);
	std::cout << "v has size " << v.size() << " and capacity " << v.capacity() << "\n";
	
	// Now add 90 values, and print the size and capacity after each insert
	for(int i = 11; i <= 100; ++i)
	{
		v.push_back(i);
		std::cout << "v has size " << v.size() << " and capacity " << v.capacity() 
			<< ". Memory range: " << &v.front() << " -- " << &v.back() << "\n";	
	}
	
	return 0;
}