Lines Matching refs:iter

65   auto iter = std::lower_bound(packages.begin(), last, name,  in FindPackage()  local
67 if (iter != last && name == (*iter)->name) { in FindPackage()
68 return iter->get(); in FindPackage()
99 auto iter = std::lower_bound(packages.begin(), last, std::make_pair(name, id), in CreatePackageAllowingDuplicateNames() local
102 if (iter != last && name == (*iter)->name && id == (*iter)->id) { in CreatePackageAllowingDuplicateNames()
103 return iter->get(); in CreatePackageAllowingDuplicateNames()
109 return packages.emplace(iter, std::move(new_package))->get(); in CreatePackageAllowingDuplicateNames()
114 auto iter = std::lower_bound(packages.begin(), last, name, in FindOrCreatePackage() local
116 if (iter != last && name == (*iter)->name) { in FindOrCreatePackage()
117 return iter->get(); in FindOrCreatePackage()
122 return packages.emplace(iter, std::move(new_package))->get(); in FindOrCreatePackage()
127 auto iter = std::lower_bound(types.begin(), last, std::make_pair(type, id), in FindType() local
129 if (iter != last && (*iter)->type == type && (!id || id == (*iter)->id)) { in FindType()
130 return iter->get(); in FindType()
138 auto iter = std::lower_bound(types.begin(), last, std::make_pair(type, id), in FindOrCreateType() local
140 if (iter != last && (*iter)->type == type && (!id || id == (*iter)->id)) { in FindOrCreateType()
141 return iter->get(); in FindOrCreateType()
146 return types.emplace(iter, std::move(new_type))->get(); in FindOrCreateType()
151 auto iter = std::lower_bound(entries.begin(), last, std::make_pair(name, id), in FindEntry() local
153 if (iter != last && name == (*iter)->name && (!id || id == (*iter)->id)) { in FindEntry()
154 return iter->get(); in FindEntry()
162 auto iter = std::lower_bound(entries.begin(), last, std::make_pair(name, id), in FindOrCreateEntry() local
164 if (iter != last && name == (*iter)->name && (!id || id == (*iter)->id)) { in FindOrCreateEntry()
165 return iter->get(); in FindOrCreateEntry()
170 return entries.emplace(iter, std::move(new_entry))->get(); in FindOrCreateEntry()
192 auto iter = std::lower_bound(values.begin(), values.end(), ConfigKey{&config, product}, in FindValue() local
194 if (iter != values.end()) { in FindValue()
195 ResourceConfigValue* value = iter->get(); in FindValue()
205 auto iter = std::lower_bound(values.begin(), values.end(), ConfigKey{&config, product}, in FindOrCreateValue() local
207 if (iter != values.end()) { in FindOrCreateValue()
208 ResourceConfigValue* value = iter->get(); in FindOrCreateValue()
214 values.insert(iter, util::make_unique<ResourceConfigValue>(config, product))->get(); in FindOrCreateValue()
221 auto iter = values.begin(); in FindAllValues() local
222 for (; iter != values.end(); ++iter) { in FindAllValues()
223 ResourceConfigValue* value = iter->get(); in FindAllValues()
226 ++iter; in FindAllValues()
231 for (; iter != values.end(); ++iter) { in FindAllValues()
232 ResourceConfigValue* value = iter->get(); in FindAllValues()