| 404 | bool empty() const { return m_stack_size == 0; } |
| 405 | bool all_true() const { return m_first_false_pos == NO_FALSE; } |
| 406 | void push_back(bool f) |
| 407 | { |
| 408 | if (m_first_false_pos == NO_FALSE && !f) { |
| 409 | // The stack consists of all true values, and a false is added. |
| 410 | // The first false value will appear at the current size. |
| 411 | m_first_false_pos = m_stack_size; |
| 412 | } |
| 413 | ++m_stack_size; |
| 414 | } |
| 415 | void pop_back() |
| 416 | { |
| 417 | assert(m_stack_size > 0); |
no outgoing calls
no test coverage detected