You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
18 lines
415 B
C++
18 lines
415 B
C++
|
|
#include <list>
|
||
|
|
#include <stack>
|
||
|
|
#include <vector>
|
||
|
|
|
||
|
|
struct C {
|
||
|
|
// Constructor for testing emplace.
|
||
|
|
C(int i) : i(i) {};
|
||
|
|
int i;
|
||
|
|
};
|
||
|
|
|
||
|
|
int main(int argc, char **argv) {
|
||
|
|
// std::deque is the default container.
|
||
|
|
std::stack<C> s_deque({{1}, {2}, {3}});
|
||
|
|
std::stack<C, std::vector<C>> s_vector({{1}, {2}, {3}});
|
||
|
|
std::stack<C, std::list<C>> s_list({{1}, {2}, {3}});
|
||
|
|
return 0; // Set break point at this line.
|
||
|
|
}
|