| 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()); |