1 | #include "immer/vector.hpp" |
---|---|
2 | #include "immer/box.hpp" |
3 | #include "immer/set.hpp" |
4 | |
5 | #include <functional> |
6 | |
7 | struct my_type |
8 | { |
9 | using container_t = immer::vector<immer::box<my_type>>; |
10 | using func_t = std::function<int(int)>; |
11 | |
12 | int ival; |
13 | double dval; |
14 | func_t func; |
15 | container_t children; |
16 | }; |
17 | |
18 | int main() |
19 | { |
20 | my_type::container_t items = {my_type()}; |
21 | immer::set<int> items2; |
22 | auto items3 = items2.insert(10); |
23 | return 0; |
24 | } |
25 |