From d915fe2b1f55a841301a78db50df54cfd1313b1e Mon Sep 17 00:00:00 2001 From: Manas Pratim Biwas Date: Mon, 12 Feb 2024 16:57:58 +0530 Subject: [PATCH] [refactor]: variable naming --- include/cache.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/include/cache.hpp b/include/cache.hpp index 3048c0d..e7fab92 100644 --- a/include/cache.hpp +++ b/include/cache.hpp @@ -61,7 +61,7 @@ namespace caches void Put(const Key& key, const Value& value) noexcept { operation_guard lock{safe_operation}; - auto element_iterator = FindElem(key); + auto element_iterator = findElement(key); if (element_iterator == cache_items_map.end()) { @@ -125,7 +125,7 @@ namespace caches bool Cached(const Key& key) const noexcept { operation_guard lock{safe_operation}; - return FindElem(key) != cache_items_map.cend(); + return findElement(key) != cache_items_map.cend(); } /* @@ -148,7 +148,7 @@ namespace caches { operation_guard lock{safe_operation}; - auto element = FindElem(key); + auto element = findElement(key); if (element == cache_items_map.end()) { @@ -190,7 +190,7 @@ namespace caches void Erase(const Key& key) { - auto element_iterator = FindElem(key); + auto element_iterator = findElement(key); Erase(element_iterator); } @@ -201,11 +201,11 @@ namespace caches cache_items_map[key] = value; } - const_iterator FindElem(const Key& key) const { return cache_items_map.find(key); } + const_iterator findElement(const Key& key) const { return cache_items_map.find(key); } std::pair GetInternal(const Key& key) const noexcept { - auto element_iterator = FindElem(key); + auto element_iterator = findElement(key); if (element_iterator != end()) {