| 105 | //! Map lookup helper. |
| 106 | template <typename Map, typename Key> |
| 107 | auto FindKey(Map&& map, Key&& key) -> decltype(&map.at(key)) |
| 108 | { |
| 109 | auto it = map.find(key); |
| 110 | return it == map.end() ? nullptr : &it->second; |
| 111 | } |
| 112 | |
| 113 | } // namespace common |
| 114 |
no test coverage detected