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