#include #include #include using namespace std; int main(){ deque a; a.push_back("First"); a.push_back("Second"); for(string x : a){ cout << x << " "; } cout << endl; auto it = a.begin(); // auto = std::deque::iterator a.insert(it + 1, "Insert"); a.push_front("Naught"); a.push_back("Last"); for(it = a.begin(); it != a.end(); it++){ cout << *it << " "; } cout << endl; return 0; }