| 4575 | */ |
| 4576 | template<typename KeyT> |
| 4577 | size_type count(KeyT&& key) const |
| 4578 | { |
| 4579 | // return 0 for all nonobject types |
| 4580 | return is_object() ? m_value.object->count(std::forward<KeyT>(key)) : 0; |
| 4581 | } |
| 4582 | |
| 4583 | /*! |
| 4584 | @brief check the existence of an element in a JSON object |