MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / count

Function count

Source/Utils/json.hpp:20862–20866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

is_objectFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected