MCPcopy Create free account
hub / github.com/OSGeo/PROJ / remove

Method remove

include/proj/internal/lru_cache.hpp:180–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178 */
179 Value getCopy(const Key &key) { return get(key); }
180 bool remove(const Key &key) {
181 Guard g(lock_);
182 auto iter = cache_.find(key);
183 if (iter == cache_.end()) {
184 return false;
185 }
186 keys_.erase(iter->second);
187 cache_.erase(iter);
188 return true;
189 }
190 bool contains(const Key &key) {
191 Guard g(lock_);
192 return cache_.find(key) != cache_.end();

Callers 1

Calls 1

endMethod · 0.80

Tested by

no test coverage detected