We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a92b1d commit 5a2a2e8Copy full SHA for 5a2a2e8
others/lru_cache2.cpp
@@ -60,7 +60,7 @@ template <typename K, typename V>
60
class LRUCache {
61
CacheNode<K, V> *head; ///< head of the doubly linked list
62
CacheNode<K, V> *tail; ///< tail of the doubly linked list
63
- int _capacity; ///< maximum capacity of the cache
+ uint32_t _capacity; ///< maximum capacity of the cache
64
65
std::unordered_map<K, CacheNode<K, V> *>
66
node_map; ///< maps the key to the node address
0 commit comments