MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / contains

Method contains

src/value.cpp:279–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277
278const value* value::find(const std::string& pkey) const { return find_impl(x, pkey, this->end()); }
279bool value::contains(const std::string& pkey) const
280{
281 const auto* it = find(pkey);
282 if(it == nullptr)
283 return false;
284 if(it == end())
285 return false;
286 return true;
287}
288std::size_t value::size() const
289{
290 const auto* a = if_array_impl(x);

Callers 15

mainFunction · 0.45
TEST_CASEFunction · 0.45
TEST_CASEFunction · 0.45
has_target_attrFunction · 0.45
applyMethod · 0.45
mod_from_valFunction · 0.45
perf_groupFunction · 0.45
get_graph_colorFunction · 0.45
get_node_contentFunction · 0.45
make_op_genericFunction · 0.45
value_from_jsonFunction · 0.45

Calls 2

findFunction · 0.85
endFunction · 0.85

Tested by 2

TEST_CASEFunction · 0.36
has_target_attrFunction · 0.36