mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-06-04 22:03:29 -06:00
20 lines
378 B
C++
20 lines
378 B
C++
typedef LRUCache<Value>::Maker ValueMaker;
|
|
|
|
LRUCache<Value>& TheValueCache();
|
|
|
|
Value MakeValue(ValueMaker& m);
|
|
|
|
void ShrinkValueCache();
|
|
void ShrinkValueCache(int maxsize);
|
|
|
|
template <class P>
|
|
int ValueCacheRemove(P what)
|
|
{
|
|
return TheValueCache().Remove(what);
|
|
}
|
|
|
|
template <class P>
|
|
int ValueCacheRemoveOne(P what)
|
|
{
|
|
return TheValueCache().Remove(what);
|
|
}
|