MCPcopy Create free account
hub / github.com/3rdparty/libprocess / foreachpair

Function foreachpair

src/help.cpp:177–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175
176 writer->field("processes", [&help](JSON::ArrayWriter* writer) {
177 foreachpair (const string& id, const StringStringMap& names, help.helps) {
178 writer->element([&id, &names](JSON::ObjectWriter* writer) {
179 writer->field("id", id);
180 writer->field("endpoints", [&names](JSON::ArrayWriter* writer) {
181 foreachpair (const string& name, const string& text, names) {
182 writer->element([&name, &text](JSON::ObjectWriter* writer) {
183 writer->field("name", name);
184 writer->field("text", text);
185 });
186 }
187 });
188 });
189 }
190 });
191}
192

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected