| 258 | } |
| 259 | |
| 260 | size_type count(const key_type& key) const |
| 261 | { |
| 262 | for (auto it = this->begin(); it != this->end(); ++it) |
| 263 | { |
| 264 | if (m_compare(it->first, key)) |
| 265 | { |
| 266 | return 1; |
| 267 | } |
| 268 | } |
| 269 | return 0; |
| 270 | } |
| 271 | |
| 272 | template<class KeyType, detail::enable_if_t< |
| 273 | detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0> |