* Get a pair of iterators specifying a range of items with equal keys. * @param key Key to look for. * @return Range of items with given key. */
| 299 | * @return Range of items with given key. |
| 300 | */ |
| 301 | std::pair<iterator, iterator> equal_range(const Tkey &key) |
| 302 | { |
| 303 | MapIterator begin(this->lower_bound(key)); |
| 304 | if (begin != this->Map::end() && begin->first == key) { |
| 305 | MapIterator end = begin; |
| 306 | return std::make_pair(begin, ++end); |
| 307 | } |
| 308 | return std::make_pair(begin, begin); |
| 309 | } |
| 310 | |
| 311 | /** |
| 312 | * Get a pair of constant iterators specifying a range of items with equal keys. |
no outgoing calls
no test coverage detected