MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / find

Method find

extern/json/json.hpp:4215–4225  ·  view source on GitHub ↗

! @brief find an element in a JSON object Finds an element in a JSON object with key equivalent to @a key. If the element is not found or the JSON value is not an object, end() is returned. @param[in] key key value of the element to search for @return Iterator to an element with key equivalent to @a key. If no such element is found, past-the-end (see end()) iterator

Source from the content-addressed store, hash-verified

4213 @since version 1.0.0
4214 */
4215 iterator find(typename object_t::key_type key)
4216 {
4217 auto result = end();
4218
4219 if (is_object())
4220 {
4221 result.m_it.object_iterator = m_value.object->find(key);
4222 }
4223
4224 return result;
4225 }
4226
4227 /*!
4228 @brief find an element in a JSON object

Callers 5

operator[]Method · 0.45
replace_substringMethod · 0.45
patchMethod · 0.45
diffMethod · 0.45

Calls 1

endFunction · 0.85

Tested by

no test coverage detected