| 76 | |
| 77 | template <typename KeyType, typename ValueType> |
| 78 | void LruMultiCache<KeyType, ValueType>::Accessor::Release() { |
| 79 | /// Nullptr check as it has to be dereferenced to get the cache reference |
| 80 | /// No nullptr check is needed inside LruMultiCache::Release() |
| 81 | if (p_value_internal_) { |
| 82 | LruMultiCache& cache = p_value_internal_->cache; |
| 83 | cache.Release(p_value_internal_); |
| 84 | p_value_internal_ = nullptr; |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | template <typename KeyType, typename ValueType> |
| 89 | void LruMultiCache<KeyType, ValueType>::Accessor::Destroy() { |
nothing calls this directly
no test coverage detected