mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[wpiutil] Replace LLVM StringMap impl with std::map
As string_view operations on std::map<std::string> won't be integrated until C++26, placeholder implementations are used which are less efficient in a couple of situations (e.g. insert with hint).
This commit is contained in:
@@ -18,8 +18,7 @@ void MechanismObject2d::Update(std::shared_ptr<nt::NetworkTable> table) {
|
||||
std::scoped_lock lock(m_mutex);
|
||||
m_table = table;
|
||||
UpdateEntries(m_table);
|
||||
for (const wpi::StringMapEntry<std::unique_ptr<MechanismObject2d>>& entry :
|
||||
m_objects) {
|
||||
entry.getValue()->Update(m_table->GetSubTable(entry.getKey()));
|
||||
for (const auto& entry : m_objects) {
|
||||
entry.second->Update(m_table->GetSubTable(entry.first));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user