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

Method empty

cpp/src/map.cpp:193–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191
192template <class K, class T>
193bool map<K,T>::empty() const {
194 if (map_.get()) {
195 return map_->empty();
196 }
197 if (value_.empty()) {
198 return true;
199 }
200 // We must decode the non-empty value to see if it is an empty map.
201 return cache().empty();
202}
203
204// Point to a different underlying pn_data_t, no copy
205template <class K, class T>

Callers 6

getMethod · 0.95
eraseMethod · 0.95
existsMethod · 0.95
sizeMethod · 0.95
map.cppFile · 0.45
valueMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected