|
linked list
|
#include <LRUList.h>
Public 成员函数 | |
| LRUList (unsigned int count) | |
| void | addNewElement (T e, RemovedTail< T > &remvedTail) |
The constructor of LRUList, it will init a double list , with a max lenght of count.
Add a new element to the lru list's head, if current length is equal maxCount, the tail node will be removed.