From c458062f72b554239029988fb5acfe54f00fa1a4 Mon Sep 17 00:00:00 2001 From: cat Date: Wed, 28 Jan 2026 12:58:30 +0200 Subject: [PATCH] Renamed resultpair to queryresult for clarity --- headers/Containers/DualkeyMap.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/headers/Containers/DualkeyMap.hpp b/headers/Containers/DualkeyMap.hpp index febb6dd..0b18f13 100644 --- a/headers/Containers/DualkeyMap.hpp +++ b/headers/Containers/DualkeyMap.hpp @@ -26,7 +26,7 @@ template class DualkeyMap { public: - using ResultPair = + using QueryResult = std::pair, std::reference_wrapper>, Value &>; @@ -121,8 +121,8 @@ public: } [[nodiscard("Discarding an expensive operation's result!")]] - std::vector query(std::optional firstKey, - std::optional secondKey) { + std::vector query(std::optional firstKey, + std::optional secondKey) { bool isFirstKeyGiven = firstKey.has_value(); bool isSecondKeyGiven = secondKey.has_value(); @@ -137,7 +137,7 @@ public: std::size_t secondKeyHash = isSecondKeyGiven ? std::hash{}(secondKey.value()) : 0; - std::vector finishedQuery{}; + std::vector finishedQuery{}; uint8_t stateOfIndexing = isFirstKeyGiven + (isSecondKeyGiven << 1); // Putting hash checks first to benefit from short circuits