dolphin/Source/Core/Common
Sintendo f2392e4048 Avoid map/set double lookups
Fix some common anti-patterns with these data structures.

- You can dereference the iterator returned by `find` to access the
  underlying value directly, without an extra `operator[]`/`at`.
- Rather than checking for an element before insertion/deletion, you can
  just do the operation and if needed check the return value to
  determine if the insertion/deletion succeeded.
2025-07-08 06:53:42 +02:00
..
Assembler Avoid map/set double lookups 2025-07-08 06:53:42 +02:00
Config Config: Make s_callbacks_lock recursive to fix hardcore mode deadlock. 2025-05-30 17:33:01 -05:00
Crypto Merge pull request #13522 from tygyh/Enforce-overriding-destructor-style-Core&UnitTests 2025-06-07 17:55:14 -05:00
Debug Simplify std::find_if with std::ranges::find and projections 2025-03-09 13:26:35 -07:00
GL Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
Logging Merge pull request #13522 from tygyh/Enforce-overriding-destructor-style-Core&UnitTests 2025-06-07 17:55:14 -05:00
Align.h
Analytics.cpp
Analytics.h
AndroidAnalytics.cpp
AndroidAnalytics.h
Arm64Emitter.cpp Core/Common: Fix typos 2025-03-11 19:48:45 -04:00
Arm64Emitter.h
ArmCommon.h
ArmCPUDetect.cpp ArmCPUDetect: Add OpenBSD support for elf_aux_info 2025-01-22 22:58:00 -05:00
ArmFPURoundMode.cpp Common: Move FPU-related helpers into Common namespace 2023-03-21 10:58:13 -04:00
Assert.h
BitField.h
BitField.natvis
BitSet.h
BitUtils.h
BlockingLoop.h
Buffer.h Common and VideoCommon: Change texture data from std::vector to Common::UniqueBuffer. 2025-05-03 18:32:30 -05:00
build_info.txt.in Update min win10 version from 1703/15063 to 1903/18362 2025-03-16 00:59:45 -05:00
ChunkFile.h
CMakeLists.txt Common: Add class 'FilesystemWatcher' that is used to watch paths and receive callbacks about filesystem level events for anything under that path 2025-06-06 23:03:02 -05:00
CodeBlock.h
ColorUtil.cpp linter: Apply clang-format 19.1 formatting 2025-04-23 11:19:20 +02:00
ColorUtil.h
Common.h
CommonFuncs.cpp Host: Implement a Windows-only implementation of GetDeviceNameFromVIDPID 2025-06-13 17:46:53 +02:00
CommonFuncs.h Host: Implement a Windows-only implementation of GetDeviceNameFromVIDPID 2025-06-13 17:46:53 +02:00
CommonPaths.h
CommonTypes.h
CompatPatches.cpp linter: Apply clang-format 19.1 formatting 2025-04-23 11:19:20 +02:00
Contains.h linter: Add and apply new formatting rules 2025-04-23 11:19:57 +02:00
CPUDetect.h
DynamicLibrary.cpp
DynamicLibrary.h
ENet.cpp
ENet.h
EnumFormatter.h
EnumMap.h
EnumMap.natvis
EnumUtils.h
Event.h IOS: Only have one USBScanner 2025-04-21 21:57:49 +02:00
FatFsUtil.cpp fmt: Replace deprecated fmt::localtime usage with Common::LocalTime 2025-06-04 13:32:12 +02:00
FatFsUtil.h Common: Make SD pack/unpack strings translatable 2025-02-23 23:09:24 +01:00
FileSearch.cpp
FileSearch.h
FilesystemWatcher.cpp Common: Add class 'FilesystemWatcher' that is used to watch paths and receive callbacks about filesystem level events for anything under that path 2025-06-06 23:03:02 -05:00
FilesystemWatcher.h Common: Add class 'FilesystemWatcher' that is used to watch paths and receive callbacks about filesystem level events for anything under that path 2025-06-06 23:03:02 -05:00
FileUtil.cpp Use std path utility for automatic path seperator handling. 2025-04-08 16:54:11 -04:00
FileUtil.h
FixedSizeQueue.h
Flag.h
FloatUtils.cpp
FloatUtils.h
FormatUtil.h
FPURoundMode.h
Functional.h Common: Add MoveOnlyFunction. 2025-04-27 20:07:13 -05:00
GekkoDisassembler.cpp Merge pull request #13586 from Tilka/spr_disasm 2025-05-09 18:55:53 -04:00
GekkoDisassembler.h
GenericCPUDetect.cpp
GenericFPURoundMode.cpp
Hash.cpp
Hash.h
HookableEvent.h
HostDisassembler.cpp Make overriding explicit and remove redundant virtual specifiers on overriding destructors - Core & UnitTests 2025-05-01 15:00:37 +02:00
HostDisassembler.h
HRWrap.cpp
HRWrap.h
HttpRequest.cpp HttpRequest: remove some legacy code for windows < 8.1 2025-04-20 11:46:09 -07:00
HttpRequest.h
Image.cpp Common and VideoCommon: Change texture data from std::vector to Common::UniqueBuffer. 2025-05-03 18:32:30 -05:00
Image.h Common and VideoCommon: Change texture data from std::vector to Common::UniqueBuffer. 2025-05-03 18:32:30 -05:00
IniFile.cpp
IniFile.h
Inline.h
Intrinsics.h Core/Common: Fix typos 2025-03-11 19:48:45 -04:00
IOFile.cpp
IOFile.h
JitRegister.cpp
JitRegister.h
JsonUtil.cpp Common: add file serialization/deserialization functions for JSON 2024-05-31 22:36:12 -05:00
JsonUtil.h Common: update json util function for converting to numeric value to use a static_cast. As discussed, a Saturating cast doesn't make sense when converting a double to a float 2024-05-31 23:08:05 -05:00
Lazy.h
LdrWatcher.cpp
LdrWatcher.h
LinearDiskCache.h LinearDiskCache: Use make_unique_for_overwrite. 2025-04-19 17:13:40 -05:00
make_scmrev.h.js
MathUtil.h
Matrix.cpp
Matrix.h Core/Common: Fix typos 2025-03-11 19:48:45 -04:00
MemArena.h MemArena: Add Darwin implementation 2025-01-08 12:46:31 -05:00
MemArenaAndroid.cpp
MemArenaDarwin.cpp MemArenaDarwin: Initialize all address variables passed to vm_map 2025-04-16 00:50:54 -04:00
MemArenaUnix.cpp
MemArenaWin.cpp Modernize std::lower_bound/upper_bound with ranges and projections 2025-03-09 13:26:38 -07:00
MemoryUtil.cpp MemoryUtil: Remove availability checks for macOS 11 2025-04-21 00:24:58 -04:00
MemoryUtil.h
MinizipUtil.h minizip-ng: Stop using compatibility mode 2025-05-22 12:51:55 +02:00
MsgHandler.cpp
MsgHandler.h
NandPaths.cpp Simplify std::find with Common::Contains 2025-01-01 09:52:03 -08:00
NandPaths.h
Network.cpp
Network.h
PcapFile.cpp
PcapFile.h
Profiler.cpp Common: Make Profiler thread safe 2025-03-29 15:05:02 +01:00
Profiler.h Common: Make Profiler thread safe 2025-03-29 15:05:02 +01:00
Projection.h Common: Create Range Projections For std::pair 2025-03-09 13:19:41 -07:00
QoSSession.cpp
QoSSession.h
Random.cpp
Random.h
Result.h
scmrev.h.in
SCMRevGen.vcxproj
ScopeGuard.h treewide: convert GPLv2+ license info to SPDX tags 2021-07-05 04:35:56 +02:00
SDCardUtil.cpp
SDCardUtil.h
Semaphore.h
SettingsHandler.cpp fmt: Replace deprecated fmt::localtime usage with Common::LocalTime 2025-06-04 13:32:12 +02:00
SettingsHandler.h
SFMLHelper.cpp Migrate to SFML>=3.0.0 2025-02-25 06:42:13 +01:00
SFMLHelper.h
SmallVector.h Common: Move some duplicate container element construction logic into a ManuallyConstructedValue template. 2025-04-30 14:56:07 -05:00
SocketContext.cpp
SocketContext.h
SpanUtils.h
SPSCQueue.h Common: Move some duplicate container element construction logic into a ManuallyConstructedValue template. 2025-04-30 14:56:07 -05:00
StringLiteral.h
StringUtil.cpp
StringUtil.h StringUtil: Use concepts instead of enable_if. 2025-05-01 16:30:37 -05:00
Swap.h
SymbolDB.cpp PPCSymbolDB: Move loading map on boot logic from boot.cpp into PPCSymbolDB, as it will be needing a mutex. 2025-06-25 12:01:16 -07:00
SymbolDB.h PPCSymbolDB: Move loading map on boot logic from boot.cpp into PPCSymbolDB, as it will be needing a mutex. 2025-06-25 12:01:16 -07:00
Thread.cpp
Thread.h
Timer.cpp Common/Timer: Use YieldProcessor on Windows. 2025-04-03 15:48:51 -05:00
Timer.h Common/Timer: Change HANDLE to void* to avoid including Windows.h to fix cmake build. 2025-04-18 21:50:15 -05:00
TimeUtil.cpp fmt: Replace deprecated fmt::localtime usage with Common::LocalTime 2025-06-04 13:32:12 +02:00
TimeUtil.h fmt: Replace deprecated fmt::localtime usage with Common::LocalTime 2025-06-04 13:32:12 +02:00
TraversalClient.cpp
TraversalClient.h
TraversalProto.h Core/Common: Fix typos 2025-03-11 19:48:45 -04:00
TraversalServer.cpp
TypeUtils.h StringUtil: Use concepts instead of enable_if. 2025-05-01 16:30:37 -05:00
Unreachable.h
UPnP.cpp
UPnP.h
VariantUtil.h VariantUtil: Introduce WithVariantAlternative to dynamically construct and visit a variant alternative. 2025-02-25 17:22:59 -06:00
Version.cpp
Version.h
WaitableFlag.h IOS: Only have one USBScanner 2025-04-21 21:57:49 +02:00
WindowsRegistry.cpp
WindowsRegistry.h
WindowSystemInfo.h Core/Common: Fix typos 2025-03-11 19:48:45 -04:00
WorkQueueThread.h WorkQueueThread: Fix Cancel() race with internal command queue. 2025-05-20 21:51:25 -05:00
x64ABI.cpp
x64ABI.h Core/Common: Fix typos 2025-03-11 19:48:45 -04:00
x64CPUDetect.cpp
x64Emitter.cpp
x64Emitter.h
x64FPURoundMode.cpp
x64Reg.h