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

Method top

base_code/template.cpp:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 }
89
90 T top() const
91 {
92 if (empty()) {
93 throw "stack is empty!"; // 抛异常也代表函数逻辑结束
94 }
95
96 return _pstack[_top-1];
97 }
98
99 bool full() const { return _top == _size; }
100

Callers 3

mainFunction · 0.45
reversePolarExpFunction · 0.45
calculateRPEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected