MCPcopy Create free account
hub / github.com/OpenSteam001/OpenSteamTool / containsField

Method containsField

tools/ipc_codegen/ipc_codegen.cpp:1018–1021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1016 }
1017
1018 static bool containsField(const std::vector<Field>& fields, std::string_view name) {
1019 return std::any_of(fields.begin(), fields.end(),
1020 [name](const Field& field) { return field.name == name; });
1021 }
1022
1023 static bool containsName(const std::vector<std::string>& names, std::string_view name) {
1024 return std::find(names.begin(), names.end(), name) != names.end();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected