| 24 | } |
| 25 | |
| 26 | void FastRunCache::put( |
| 27 | const Algorithm::SearchItem& key, const Algorithm::Info::Desc& val) { |
| 28 | SearchItemStorage key_storage(key); |
| 29 | key_storage.init_hash(); |
| 30 | megdnn_assert(m_cache.find(key_storage) == m_cache.end()); |
| 31 | m_cache[std::move(key_storage)] = val; |
| 32 | } |
| 33 | |
| 34 | // vim: syntax=cpp.doxygen |
no test coverage detected