-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
32 lines (26 loc) · 798 Bytes
/
main.cpp
File metadata and controls
32 lines (26 loc) · 798 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
#include "library.h"
#include <iostream>
#include <cmath>
#include <list>
#include <vector>
#include <map>
#include <set>
#include "rb_tree.h"
void test_tree2() {
ft::multimap_tree<int, std::string, std::pair<int, std::string> > bst;
bst.insert_data(std::pair<int, std::string>(10, "hola"));
bst.insert_data(std::pair<int, std::string>(10, "lola"));
bst.insert_data(std::pair<int, std::string>(15, "sup"));
bst.insert_data(std::pair<int, std::string>(85, "gme"));
bst.print(bst.get_root(), 1);
bst.delete_node(std::pair<int, std::string>(85, "ans"));
std::cout << "----" << std::endl;
bst.print(bst.get_root(), 1);
bst.delete_node(std::pair<int, std::string>(15, "ans"));
std::cout << "----" << std::endl;
bst.print(bst.get_root(), 1);
}
int main() {
test_tree2();
return (0);
}