void deque<X,A>::push_front(const X& kxrValue);
#include <deque>
void deque<X,A>::push_front(X&& xrrValue);
#include <iostream> #include <deque> int main() { using namespace std; // Create a deque instance deque<char> qD; qD.push_front('X'); qD.push_front('o'); qD.push_front('a'); qD.push_front('X'); qD.push_front('.'); qD.push_front('n'); qD.push_front('e'); qD.push_front('t'); // Output the entries after push_front() deque<char>::iterator qIter; for (qIter = qD.begin(); qIter != qD.end(); ++qIter) { cout << *qIter; } cout << endl; // Keep the window open cin.get(); return 0; }
© 20072024 XoaX.net LLC. All rights reserved.