| 235 | this->discard_old(); |
| 236 | } |
| 237 | inline bool contains(const key_type& k) const { |
| 238 | return (bool)_objects.count(k); |
| 239 | } |
| 240 | inline void touch(const key_type& k) { |
| 241 | if (!this->contains(k)) { |
| 242 | throw std::runtime_error("Key not found in cache"); |
no outgoing calls
no test coverage detected