Lines Matching defs:it
56 // associated with it (i.e. using std::map::clear would introduce a
76 std::map<int, MapItem*>::const_iterator it = map_.begin();
77 if (it != map_.end())
79 return it->second;
86 std::map<int, MapItem*>::const_reverse_iterator it = map_.rbegin();
87 if (it != map_.rend())
89 return it->second;
100 std::map<int, MapItem*>::const_iterator it = map_.find(item->item_id_);
101 if (it != map_.end())
103 it++;
104 if (it != map_.end())
106 return it->second;
119 std::map<int, MapItem*>::const_iterator it = map_.find(item->item_id_);
120 if ((it != map_.end()) &&
121 (it != map_.begin()))
123 --it;
124 return it->second;
131 std::map<int, MapItem*>::const_iterator it = map_.find(id);
132 if (it != map_.end())
134 return it->second;
145 std::map<int, MapItem*>::iterator it = map_.find(item->item_id_);
146 if (it != map_.end())
148 delete it->second;
149 map_.erase(it);
157 std::map<int, MapItem*>::iterator it = map_.find(id);
158 if (it != map_.end())
160 delete it->second;
161 map_.erase(it);