| 20944 | */ |
| 20945 | template<typename KeyT> |
| 20946 | size_type count(KeyT&& key) const |
| 20947 | { |
| 20948 | // return 0 for all nonobject types |
| 20949 | return is_object() ? m_value.object->count(std::forward<KeyT>(key)) : 0; |
| 20950 | } |
| 20951 | |
| 20952 | /*! |
| 20953 | @brief check the existence of an element in a JSON object |