lrucache11 icon indicating copy to clipboard operation
lrucache11 copied to clipboard

A header only C++11 LRU Cache template class that allows you to define key, value and optionally the Map type. uses a double linked list and a std::unordered_map style container to provide fast insert...

Results 9 lrucache11 issues
Sort by recently updated
recently updated
newest added

This fixes the following deprecation warning generated by newer CMake versions: ``` CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version...

https://github.com/mohaps/lrucache11/blob/ab288eee4d7148a93e467eb2782bad852b95da6b/LRUCache11.hpp#L161C14-L161C14

Hi, I am reviewing the code to this header to evaluate if I can use it in my project. I like that the cache makes a design choice towards internal...

KeyValuePair(K k, V v) : key(std::move(k)), value(std::move(v)) {} to template KeyValuePair(KK&& k, VV&& v) : key(std::forward(k)), value(std::forward(v)) {}

hi,i use you source code , but when i test many times, it will case a bug like this: *** Error in `./../../build64_release/cplusutils/lrucache/lrucache_test': corrupted double-linked list: 0x00007f03c80008d0 *** ======= Backtrace:...

Hi. I was testing the performance on a few LRU cache implementations and noticed that there are a few unnecessary copies. I'll create a pull request to move keys/values where...