| 19262 | } |
| 19263 | |
| 19264 | size_type count(const key_type& key) const |
| 19265 | { |
| 19266 | for (auto it = this->begin(); it != this->end(); ++it) |
| 19267 | { |
| 19268 | if (m_compare(it->first, key)) |
| 19269 | { |
| 19270 | return 1; |
| 19271 | } |
| 19272 | } |
| 19273 | return 0; |
| 19274 | } |
| 19275 | |
| 19276 | template<class KeyType, detail::enable_if_t< |
| 19277 | detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0> |