| 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 | { |
no outgoing calls
no test coverage detected