News for hackers. Stuff that matters.
Re:Show HN: A header only C++11 LRU Cache template class, wi... by speps on Tuesday August 30, 2016 @09:55AM (#12390118)
So it's C++11 but still uses naked pointers...
Re:Show HN: A header only C++11 LRU Cache template class, wi... by mohaps on Tuesday August 30, 2016 @10:11AM (#12390288)
the naked pointers are inside an internal kv namespace and are a convenience/carry over from the previous implementation (I've covered the justification for the way it's written in a comment above).

the TL;DR is that it is written the way it is to achieve constant time remove/remove_and_add_to_end operations which is not an erase+append but more like an unlink/relink operation.