[core] Switch to ankerl::unordered_dense

Signed-off-by: x7z4w <x7z4w@noreply.codeberg.org>
This commit is contained in:
x7z4w
2025-11-24 17:34:56 +00:00
parent 03132c6877
commit ef6522ed28
282 changed files with 4386 additions and 1456 deletions

View File

@@ -6,7 +6,8 @@
#include "platform/downloader_defines.hpp"
#include <string>
#include <unordered_set>
#include "3party/ankerl/unordered_dense.h"
namespace
{
@@ -140,7 +141,7 @@ using namespace storage;
@interface MWMAutoupdateController () <MWMCircularProgressProtocol, MWMStorageObserver>
{
std::unordered_set<CountryId> m_updatingCountries;
ankerl::unordered_dense::set<CountryId> m_updatingCountries;
}
@property(nonatomic) Framework::DoAfterUpdate todo;
@@ -302,7 +303,7 @@ using namespace storage;
downloadedBytes:(uint64_t)downloadedBytes
totalBytes:(uint64_t)totalBytes
{
if (m_updatingCountries.find(countryId.UTF8String) != m_updatingCountries.end())
if (m_updatingCountries.contains(countryId.UTF8String))
[self updateProcessStatus:countryId.UTF8String];
}