-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c++
42 lines (39 loc) · 862 Bytes
/
main.c++
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "allocator.h"
#include <iostream>
#include <cstdio>
#include <vector>
#include <ctime>
#include <list>
#include <deque>
#include "list.h"
#include "initialized.h"
#include "vector.h"
#include "deque.h"
#include "stack.h"
#include "queue.h"
#include <queue>
#include <algorithm>
#include "pair.h"
#include <set>
#include "rb_tree.h"
#include "set.h"
#include "map.h"
#include <map>
#include "hashtable.h"
#include "unordered_set.h"
#include "unordered_map.h"
#include <typeinfo>
#include <memory>
#include "util.h"
using namespace mystl;
class Test{
public:
Test() : val_(0) {};
explicit Test(int i) : val_(i) {}
Test(Test& rhs) : val_(rhs.val_) { printf("copy construct!\n"); }
Test(Test&& rhs) noexcept : val_(rhs.val_) { printf("move construct!\n"); }
int val_;
};
auto main() -> int {
printf("%d\n", __cplusplus);
}