Consider the following two ways of creating a vector filled
with 1,2,...,1000.
// method I
vector<int> A(1000);
iota( A.begin(), A.end(), 1 );
// method II
vector<int> A;
for( int i = 1; i <= 1000; i++ )
A.push_back( i );
Which of the following is true about these two methods?