MCPcopy Create free account
hub / github.com/YatSenOS/YatSenOS-Tutorial-Volume-1 / back

Method back

lab8/src/5/src/utils/list.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32ListItem *List::back()
33{
34 ListItem *temp = head.next;
35 if (!temp)
36 return nullptr;
37
38 while (temp->next)
39 {
40 temp = temp->next;
41 }
42
43 return temp;
44}
45
46void List::push_back(ListItem *itemPtr)
47{

Callers 2

executeProcessMethod · 0.45
forkMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected