MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / stackHasKeyValuePair

Function stackHasKeyValuePair

test/Entity.cpp:1081–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1079};
1080
1081inline bool stackHasKeyValuePair(const std::vector<std::pair<std::string, std::string>>& stack,
1082 const std::string& key, const std::string& value)
1083{
1084 auto it = std::find(stack.begin(), stack.end(), std::make_pair(key, value));
1085 return it != stack.end();
1086}
1087
1088inline bool stackHasKey(const std::vector<std::pair<std::string, std::string>>& stack,
1089 const std::string& key)

Callers 2

TEST_FFunction · 0.85

Calls 3

findFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected