| 87 | |
| 88 | template <typename KeyType, typename ValueType> |
| 89 | void LruMultiCache<KeyType, ValueType>::Accessor::Destroy() { |
| 90 | /// Nullptr check as it has to be dereferenced to get the cache reference |
| 91 | /// No nullptr check is needed inside LruMultiCache::Destroy() |
| 92 | if (p_value_internal_) { |
| 93 | LruMultiCache& cache = p_value_internal_->cache; |
| 94 | cache.Destroy(p_value_internal_); |
| 95 | p_value_internal_ = nullptr; |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | template <typename KeyType, typename ValueType> |
| 100 | LruMultiCache<KeyType, ValueType>::LruMultiCache(size_t capacity) |