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

Method pop_back

lab8/src/6/src/utils/list.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56void List::pop_back()
57{
58 ListItem *temp = back();
59 if (temp)
60 {
61 temp->previous->next = nullptr;
62 temp->previous = temp->next = nullptr;
63 }
64}
65
66ListItem *List::front()
67{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected