MCPcopy Create free account
hub / github.com/comaps/comaps / ClearCachesImpl

Method ClearCachesImpl

libs/storage/country_info_getter.cpp:235–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235void 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
243template <typename Fn>
244std::invoke_result_t<Fn, std::vector<m2::RegionD>> CountryInfoReader::WithRegion(size_t id, Fn && fn) const

Callers

nothing calls this directly

Calls 3

ForEachValueMethod · 0.45
swapMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected