Least Recently Used cache using C++

前端 未结 7 1293
甜味超标
甜味超标 2020-12-14 05:04

I am trying to implement LRU Cache using C++ . I would like to know what is the best design for implementing them. I know LRU should provide find(), add an element and remov

7条回答
  •  春和景丽
    2020-12-14 05:21

    This article describes a couple of C++ LRU cache implementations (one using STL, one using boost::bimap).

提交回复
热议问题