Insert multiple letters in a deque

Hello. Is it possible to insert multiple letters in a deque when you first initialize it? Something like:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>
#include <deque>

using namespace std;

int main()
{
    
    char iword[200];

    deque<char>lol(1,'A', 1,'B');



    cin.get(iword, sizeof(iword)); cin.ignore(1000, '\n');






    return 0;
}


This does not work however. Is it possible or do I need to use push_front?
In C++11 you can.
deque<char>lol{'A', 'B'};
so I assume that the order will be:

A-B-C etc

or

C-B-A ?
Topic archived. No new replies allowed.