MCPcopy Create free account
hub / github.com/Tencent/Hardcoder / equal_range

Method equal_range

libapp2sys/prebuilt/include/google/protobuf/map.h:1546–1555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1544 : iterator(elements_->find(key));
1545 }
1546 std::pair<const_iterator, const_iterator> equal_range(
1547 const key_type& key) const {
1548 const_iterator it = find(key);
1549 if (it == end()) {
1550 return std::pair<const_iterator, const_iterator>(it, it);
1551 } else {
1552 const_iterator begin = it++;
1553 return std::pair<const_iterator, const_iterator>(begin, it);
1554 }
1555 }
1556 std::pair<iterator, iterator> equal_range(const key_type& key) {
1557 iterator it = find(key);
1558 if (it == end()) {

Callers

nothing calls this directly

Calls 1

endFunction · 0.85

Tested by

no test coverage detected