MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / count

Function count

3rd/nlohmann_json/single_include/nlohmann/json.hpp:22078–22082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22076 */
22077 template<typename KeyT>
22078 size_type count(KeyT&& key) const
22079 {
22080 // return 0 for all nonobject types
22081 return is_object() ? m_value.object->count(std::forward<KeyT>(key)) : 0;
22082 }
22083
22084 /*!
22085 @brief check the existence of an element in a JSON object

Callers

nothing calls this directly

Calls 2

is_objectFunction · 0.70
countMethod · 0.45

Tested by

no test coverage detected