Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
93
bool 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
find
Function · 0.85
begin
Method · 0.80
end
Method · 0.80
Tested by
no test coverage detected