| 20860 | */ |
| 20861 | template<typename KeyT> |
| 20862 | size_type count(KeyT&& key) const |
| 20863 | { |
| 20864 | // return 0 for all nonobject types |
| 20865 | return is_object() ? m_value.object->count(std::forward<KeyT>(key)) : 0; |
| 20866 | } |
| 20867 | |
| 20868 | /*! |
| 20869 | @brief check the existence of an element in a JSON object |