| 19138 | } |
| 19139 | |
| 19140 | size_type count(const key_type& key) const |
| 19141 | { |
| 19142 | for (auto it = this->begin(); it != this->end(); ++it) |
| 19143 | { |
| 19144 | if (m_compare(it->first, key)) |
| 19145 | { |
| 19146 | return 1; |
| 19147 | } |
| 19148 | } |
| 19149 | return 0; |
| 19150 | } |
| 19151 | |
| 19152 | template<class KeyType, detail::enable_if_t< |
| 19153 | detail::is_usable_as_key_type<key_compare, key_type, KeyType>::value, int> = 0> |