| 17 | |
| 18 | template <typename T> |
| 19 | T * find(const std::string & key) { |
| 20 | const auto it = cache_.find(key); |
| 21 | if (it == cache_.end()) { |
| 22 | return nullptr; |
| 23 | } |
| 24 | return std::any_cast<T>(&it->second); |
| 25 | } |
| 26 | |
| 27 | template <typename T> |
| 28 | const T * find(const std::string & key) const { |
no test coverage detected