| 191 | |
| 192 | template <class K, class T> |
| 193 | bool 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 |
| 205 | template <class K, class T> |