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