MCPcopy Create free account
hub / github.com/EricPengShuai/Interview / pop

Method pop

practice/itemPool.cpp:31–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29 }
30
31 void pop() // 出队操作
32 {
33 if (empty())
34 return;
35 QueueItem *first = _front->_next;
36 _front->_next = first->_next;
37 if (_front->_next == nullptr) {
38 _rear = _front;
39 }
40 delete first;
41 }
42
43 T front() const
44 {

Callers 8

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
getMethod · 0.45
reversePolarExpFunction · 0.45
calculateRPEFunction · 0.45
stringToTreeNodeFunction · 0.45
treeNodeToStringFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected