| 18569 | */ |
| 18570 | template<typename KeyT> |
| 18571 | size_type count(KeyT&& key) const |
| 18572 | { |
| 18573 | // return 0 for all nonobject types |
| 18574 | return is_object() ? m_value.object->count(std::forward<KeyT>(key)) : 0; |
| 18575 | } |
| 18576 | |
| 18577 | /*! |
| 18578 | @brief check the existence of an element in a JSON object |