| 214 | } |
| 215 | |
| 216 | uint32_t RankerResult::GetBestType(vector<uint32_t> const * preferredTypes /* = nullptr */) const |
| 217 | { |
| 218 | if (preferredTypes) |
| 219 | { |
| 220 | ASSERT(is_sorted(preferredTypes->begin(), preferredTypes->end()), ()); |
| 221 | for (uint32_t type : m_types) |
| 222 | if (binary_search(preferredTypes->begin(), preferredTypes->end(), type)) |
| 223 | return type; |
| 224 | } |
| 225 | |
| 226 | return m_types.GetBestType(); |
| 227 | } |
| 228 | |
| 229 | // RankerResult::RegionInfo ------------------------------------------------------------------------ |
| 230 | bool RankerResult::RegionInfo::GetCountryId(storage::CountryInfoGetter const & infoGetter, |
no test coverage detected