brintos

brintos / llvm-project-archived public Read only

0
0
Text · 415 B · 0ce9499 Raw
18 lines · cpp
1#include <list>2#include <stack>3#include <vector>4 5struct C {6  // Constructor for testing emplace.7  C(int i) : i(i) {};8  int i;9};10 11int 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