1 | #include <list> |
---|---|
2 | #include <stack> |
3 | #include <vector> |
4 | |
5 | struct C { |
6 | // Constructor for testing emplace. |
7 | C(int i) : i(i) {}; |
8 | int i; |
9 | }; |
10 | |
11 | int main(int argc, char **argv) { |
12 | // std::deque is the default container. |
13 | std::stack<C> s_deque({{1}, {2}, {3}}); |
14 | std::stack<C, std::vector<C>> s_vector({{1}, {2}, {3}}); |
15 | std::stack<C, std::list<C>> s_list({{1}, {2}, {3}}); |
16 | return 0; // Set break point at this line. |
17 | } |
18 |