MCPcopy Create free account
hub / github.com/apache/qpid-proton / erase

Method erase

cpp/src/map.cpp:168–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166
167template <class K, class T>
168size_t map<K,T>::erase(const K& k) {
169 if (this->empty()) {
170 return 0;
171 } else {
172 return cache().erase(k);
173 }
174}
175
176template <class K, class T>
177bool map<K,T>::exists(const K& k) const {

Callers 15

test_emptyFunction · 0.80
test_useFunction · 0.80
remove_work_queueMethod · 0.80
cancelMethod · 0.80
run_timer_jobsMethod · 0.80
test_message_mapsFunction · 0.80
do_readMethod · 0.80
on_settled_spanMethod · 0.80
unsubscribeMethod · 0.80
on_messageMethod · 0.80
on_messageMethod · 0.80
operator++Method · 0.80

Calls 1

emptyMethod · 0.95

Tested by 4

test_emptyFunction · 0.64
test_useFunction · 0.64
test_message_mapsFunction · 0.64
do_readMethod · 0.64