Consider the following main function:
int main()
{
cout << "Iterator example" << endl;
vector vals;
vector :: iterator p;
for(int i = 0; i < 10; ++i)
vals.push_back(i*2+1);
// output using an iterator
for(p = vals.begin( ); p < vals.end( ); ++p)
cout << *p << endl;
}
Which of the following is an object of a template class?
A. |
p |
B. |
none of the above |
C. |
vals |
D. |
all of the above
|