Consider the following statement using the STL remove routine.
remove( a, b, x );
What of the following accurately describes what the variables a and b represent?
Consider the execution of the following.
vector<int> A(10,20);
Which of the following accurately describes what is created?
list<int> A(10);
Consider the following code fragment.
stack<int> S; S.push(123); S.push(456);
Now consider the following statement.
cout << S.pop() << endl;
Which of the following most accurately describes what goes wrong when that statement is executed?
For an STL iterator it and an STL container A, the expression
it != A.end()
is used for which of the following purposes?
li st<int>::const_iterator it; for( it = L.begin(); it != L.end(); ++it ) *it = 0;
What is syntactically wrong with this fragment?
list<int>::iterator it; for( it = L.end(); it != L.begin(); --it ) cout << *it << endl;
Which of the following most accurately describes what is wrong with it?
The STL contains a general purpose search function:
find( first, last, x );
What search method does find use?