Searched refs:list_map_ (Results 1 – 1 of 1) sorted by relevance
72 LruCache(const LruCache& other) : capacity_(other.capacity_), list_map_(other.list_map_) {} in LruCache()81 list_map_ = other.list_map_;87 return capacity_ == rhs.capacity_ && list_map_ == rhs.list_map_;99 list_map_.clear(); in clear()117 auto iter = list_map_.find(key); in find()118 if (iter == list_map_.end()) { in find()122 list_map_.splice(list_map_.begin(), list_map_, iter); in find()130 return find(key) != list_map_.end(); in contains()142 list_map_.begin()->second = std::move(value); in insert_or_assign()147 if (list_map_.size() == capacity_) { in insert_or_assign()[all …]