◆ cll()
◆ ~cll()
◆ display()
23 for (
int i = 0; i < total; i++) {
24 cout << current->data <<
" -> ";
25 current = current->next;
28 cout <<
"Total element: " << total <<
endl;
#define endl
Definition: matrix_exponentiation.cpp:36
Definition: avltree.cpp:13
◆ find_item()
| bool cll::find_item |
( |
int |
item_to_find | ) |
|
84 while (current->next != head) {
85 if (current->data == item_to_find)
87 current = current->next;
◆ get_size()
◆ insert_front()
| void cll::insert_front |
( |
int |
new_data | ) |
|
36 newNode->data = new_data;
43 while (current->next != head) {
44 current = current->next;
47 current->next = newNode;
◆ insert_tail()
| void cll::insert_tail |
( |
int |
new_data | ) |
|
57 newNode->data = new_data;
64 while (current->next != head) {
65 current = current->next;
67 current->next = newNode;
◆ operator*()
◆ operator++()
102 node *current = head;
103 while (current->next != head) {
104 current = current->next;
106 current->next = head->next;
The documentation for this class was generated from the following files:
- data_structures/cll/cll.h
- data_structures/cll/cll.cpp