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

Function contains

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

Source from the content-addressed store, hash-verified

4608 template < typename KeyT, typename std::enable_if <
4609 !std::is_same<typename std::decay<KeyT>::type, json_pointer>::value, int >::type = 0 >
4610 bool contains(KeyT && key) const
4611 {
4612 return is_object() && m_value.object->find(std::forward<KeyT>(key)) != m_value.object->end();
4613 }
4614
4615 /*!
4616 @brief check the existence of an element in a JSON object given a JSON pointer

Callers

nothing calls this directly

Calls 4

containsMethod · 0.80
is_objectFunction · 0.70
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected