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

Method push

practice/itemPool.cpp:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 }
23
24 void push(const T &val) // 入队操作
25 {
26 QueueItem *item = new QueueItem(val);
27 _rear->_next = item; // 类似于尾插法
28 _rear = item;
29 }
30
31 void pop() // 出队操作
32 {

Callers 8

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
putMethod · 0.45
reversePolarExpFunction · 0.45
calculateRPEFunction · 0.45
stringToTreeNodeFunction · 0.45
treeNodeToStringFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected