| 1749 | } |
| 1750 | |
| 1751 | bool CCommunity::HasCountry(const char *pCountryName) const |
| 1752 | { |
| 1753 | return std::find_if(Countries().begin(), Countries().end(), [pCountryName](const auto &Elem) { |
| 1754 | return str_comp(Elem.Name(), pCountryName) == 0; |
| 1755 | }) != Countries().end(); |
| 1756 | } |
| 1757 | |
| 1758 | bool CCommunity::HasType(const char *pTypeName) const |
| 1759 | { |