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

Function count

3rd/nlohmann_json/include/nlohmann/json.hpp:4577–4581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 5

DescribeToMethod · 0.50
DescribeNegationToMethod · 0.50
MatchAndExplainMethod · 0.50
mainFunction · 0.50
TEST_FFunction · 0.50

Calls 2

is_objectFunction · 0.70
countMethod · 0.45

Tested by 2

mainFunction · 0.40
TEST_FFunction · 0.40