| 175 | // std::function<> requires copy constructibility |
| 176 | struct { |
| 177 | RetType operator()(const Key& key) const { return (*memoized_)(key); } |
| 178 | std::shared_ptr<Memoizer> memoized_; |
| 179 | } shared_memoized = { |
| 180 | std::make_shared<Memoizer>(std::forward<Func>(func), cache_capacity)}; |
nothing calls this directly
no outgoing calls
no test coverage detected