| 45 | } |
| 46 | |
| 47 | bool erase_first(ValueType& out) { |
| 48 | std::lock_guard lock{mutex}; |
| 49 | auto it = map.begin(); |
| 50 | |
| 51 | if (it == map.end()) { |
| 52 | return false; |
| 53 | } |
| 54 | |
| 55 | out = it->second; |
| 56 | map.erase(it); |
| 57 | return true; |
| 58 | } |
| 59 | |
| 60 | bool contains(const KeyType& key) { |
| 61 | std::lock_guard lock{mutex}; |
no test coverage detected