| 233 | } |
| 234 | |
| 235 | void CountryInfoReader::ClearCachesImpl() const |
| 236 | { |
| 237 | std::lock_guard<std::mutex> lock(m_cacheMutex); |
| 238 | |
| 239 | m_cache.ForEachValue([](std::vector<m2::RegionD> & v) { std::vector<m2::RegionD>().swap(v); }); |
| 240 | m_cache.Reset(); |
| 241 | } |
| 242 | |
| 243 | template <typename Fn> |
| 244 | std::invoke_result_t<Fn, std::vector<m2::RegionD>> CountryInfoReader::WithRegion(size_t id, Fn && fn) const |
nothing calls this directly
no test coverage detected