typedef X deque<X, A>::value_type;
#include <deque>
#include <iostream>
#include <deque>
int main()
{
using namespace std;
// Create a deque and add an element to it
deque<int> qDeque;
qDeque.push_back(5);
// Assign a value and output it
deque<int>::iterator qIter = qDeque.begin();
deque<int>::value_type qValue = (*qIter);
cout << "The value is " << qValue << endl;
// Keep the window open
cin.get();
return 0;
}
© 20072025 XoaX.net LLC. All rights reserved.