| 183 | }; |
| 184 | |
| 185 | struct MemoizeLruFactory { |
| 186 | template <typename Func, |
| 187 | typename RetType = decltype(MemoizeLru(std::declval<Func>(), 0))> |
| 188 | RetType operator()(Func&& func, int32_t capacity) { |
| 189 | return MemoizeLru(std::forward<Func>(func), capacity); |
| 190 | } |
| 191 | }; |
| 192 | |
| 193 | struct MemoizeLruThreadUnsafeFactory { |
| 194 | template <typename Func, |
nothing calls this directly
no test coverage detected