News for hackers. Stuff that matters.
Re:Show HN: A header only C++11 LRU Cache template class, wi... by en4bz on Tuesday August 30, 2016 @11:45AM (#12391161)
To swap nodes in the list you need to use splice like this:

keys_.splice(keys_.begin(), keys_, iter->second);

Where iter is from the cache lookup.

There are no comments on this comment yet.