MCPcopy Create free account
hub / github.com/Kistler-Group/sdbus-cpp / operator[]

Method operator[]

tools/xml2cpp-codegen/xml.cpp:47–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47Nodes Nodes::operator[](const std::string& key) const
48{
49 Nodes result;
50
51 for (auto it = begin(), endIt = end(); it != endIt; ++it)
52 {
53 Nodes part = (**it)[key];
54
55 result.insert(result.end(), part.begin(), part.end());
56 }
57 return result;
58}
59
60Nodes Nodes::select(const std::string& attr, const std::string& value) const
61{

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected