MCPcopy Create free account
hub / github.com/ElementsProject/elements / findKey

Method findKey

src/univalue/lib/univalue.cpp:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167bool UniValue::findKey(const std::string& key, size_t& retIdx) const
168{
169 for (size_t i = 0; i < keys.size(); i++) {
170 if (keys[i] == key) {
171 retIdx = i;
172 return true;
173 }
174 }
175
176 return false;
177}
178
179bool UniValue::checkObject(const std::map<std::string,UniValue::VType>& t) const
180{

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected