cpp-lru-cache
cpp-lru-cache copied to clipboard
why don we implement lrucache in header files(.hpp)
I was wondering that lrucache should only declare function in header files and implement the declration in .cpp files such as lrucache.cpp
The LRU cache is "header-only", as usual for class templates. There is no lrucache.cpp file.