MCPcopy Create free account
hub / github.com/AllentDan/LibtorchTutorials / count

Function count

lesson6-Segmentation/json.hpp:20863–20867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

is_objectFunction · 0.85
countMethod · 0.80

Tested by

no test coverage detected