MCPcopy Create free account
hub / github.com/apache/arrow / Clear

Method Clear

cpp/src/arrow/util/cache_internal.h:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 ARROW_DEFAULT_MOVE_AND_ASSIGN(LruCache);
46
47 void Clear() {
48 items_.clear();
49 map_.clear();
50 // The C++ spec doesn't tell whether map_.clear() will shrink the map capacity
51 map_.reserve(capacity_ + 1);
52 }
53
54 int32_t size() const {
55 ARROW_DCHECK_EQ(items_.size(), map_.size());

Callers

nothing calls this directly

Calls 2

clearMethod · 0.45
reserveMethod · 0.45

Tested by

no test coverage detected