MCPcopy Create free account
hub / github.com/apache/arrow / MemoizeLruFactory

Class MemoizeLruFactory

cpp/src/arrow/util/cache_test.cc:185–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183};
184
185struct 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
193struct MemoizeLruThreadUnsafeFactory {
194 template <typename Func,

Callers

nothing calls this directly

Calls 1

MemoizeLruFunction · 0.85

Tested by

no test coverage detected