| 274 | bool SettingsSpan::empty() const { return size == 0 || last_negated(); } |
| 275 | bool SettingsSpan::last_negated() const { return size > 0 && data[size - 1].isFalse(); } |
| 276 | size_t SettingsSpan::negated() const |
| 277 | { |
| 278 | for (size_t i = size; i > 0; --i) { |
| 279 | if (data[i - 1].isFalse()) return i; // Return number of negated values (position of last false value) |
| 280 | } |
| 281 | return 0; |
| 282 | } |
| 283 | |
| 284 | } // namespace common |
no test coverage detected