| 107 | } |
| 108 | |
| 109 | static int size_approx() |
| 110 | { |
| 111 | auto tail = tailIndex.load(std::memory_order_relaxed); |
| 112 | auto head = headIndex.load(std::memory_order_relaxed); |
| 113 | return circular_less_than(head, tail) ? static_cast<int>(tail - head) : 0; |
| 114 | } |
no test coverage detected