cpp-lru-cache icon indicating copy to clipboard operation
cpp-lru-cache copied to clipboard

why don we implement lrucache in header files(.hpp)

Open fengxiaohu opened this issue 4 years ago • 1 comments

I was wondering that lrucache should only declare function in header files and implement the declration in .cpp files such as lrucache.cpp

fengxiaohu avatar Oct 28 '21 12:10 fengxiaohu

The LRU cache is "header-only", as usual for class templates. There is no lrucache.cpp file.

RokerHRO avatar Feb 27 '25 06:02 RokerHRO