-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
37 lines (30 loc) · 932 Bytes
/
main.cpp
File metadata and controls
37 lines (30 loc) · 932 Bytes
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
#include <template/t_fixed_arr.hpp>
#include <template/t_arr_buffer.hpp>
#include <template/t_byte_buffer.hpp>
#include <template/t_string.hpp>
#include <template/t_byte_stream.hpp>
#include <template/t_linklist.hpp>
#include <template/t_queue.hpp>
#include <template/t_list.hpp>
#include <template/t_stack.hpp>
#include <template/t_red_black_tree.hpp>
#include <template/t_tree_map.hpp>
#include <utility/t_pair.hpp>
#include <utility/t_bit.hpp>
#include <algorithm/t_math.hpp>
#include <algorithm/t_sort.hpp>
#include <atomic/t_atomic_queue.hpp>
#include <atomic/t_atomic_ring_queue.hpp>
#include <template/t_search_binary_tree.hpp>
using namespace tcx;
int main(int, char**){
// create the object
TreeMap<std::string,int> m;
m.emplace("b",10);
m.emplace("a",100);
m["a"] = 60;
m.inc_traverse([](const auto& each){
std::cout << each.first <<':' << each.second<<'\n';
});
return 0;
}