| 119 | |
| 120 | template <typename F> |
| 121 | ThreadSafeMemoizer(F&& func, int32_t cache_capacity) |
| 122 | : func_(std::forward<F>(func)), cache_(cache_capacity) {} |
| 123 | |
| 124 | // The memoizer can't return a pointer to the cached value, because |
| 125 | // the cache entry may be evicted by another thread. |
nothing calls this directly
no outgoing calls
no test coverage detected