#include
#include
#include
using namespace std;
int main( )
{
vector v( 10, 66 );
v[1] = 100;
vector::iterator before_itr = max_element( v.begin(), v.end() );
cout << "The maximum before resizing is " << *before_itr;
vector::difference_type max_index = before_itr - v.begin();
}