MCPcopy Create free account
hub / github.com/cvengler/sysget / VectorContains

Method VectorContains

src/utils.cpp:93–95  ·  view source on GitHub ↗

Check if an item exists in a vector

Source from the content-addressed store, hash-verified

91
92// Check if an item exists in a vector
93bool sysget::VectorContains(std::string s, std::vector<std::string> v) {
94 return std::find(v.begin(), v.end(), s) != v.end();
95}

Callers

nothing calls this directly

Calls 3

findFunction · 0.85
beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected