| 260 | m_head = current_size; |
| 261 | } |
| 262 | void push(T ele) |
| 263 | { |
| 264 | if (full()) |
| 265 | { |
| 266 | assert(size() == m_capacity - 1); |
| 267 | resize(size() + 1024); |
| 268 | } |
| 269 | m_buffer[m_head] = ele; |
| 270 | m_head = (m_head + 1) % m_capacity; |
| 271 | } |
| 272 | void push_front(T ele) |
| 273 | { |
| 274 | if (full()) |
no outgoing calls
no test coverage detected