MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / key

Method key

dependencies/json/json.hpp:5656–5671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5654 }
5655
5656 bool key(string_t& val)
5657 {
5658 BasicJsonType k = BasicJsonType(val);
5659
5660 // check callback for key
5661 const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k);
5662 key_keep_stack.push_back(keep);
5663
5664 // add discarded value at given key and store the reference for later
5665 if (keep && ref_stack.back())
5666 {
5667 object_element = &(ref_stack.back()->m_value.object->operator[](val) = discarded);
5668 }
5669
5670 return true;
5671 }
5672
5673 bool end_object()
5674 {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
push_backMethod · 0.45
operator[]Method · 0.45

Tested by

no test coverage detected