MCPcopy Create free account
hub / github.com/Kitware/CMake / intersect

Function intersect

Source/cmGeneratorTarget_CompatibleInterface.cxx:196–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194
195namespace {
196std::string intersect(std::set<std::string> const& s1,
197 std::set<std::string> const& s2)
198{
199 std::set<std::string> intersect;
200 std::set_intersection(s1.begin(), s1.end(), s2.begin(), s2.end(),
201 std::inserter(intersect, intersect.begin()));
202 if (!intersect.empty()) {
203 return *intersect.begin();
204 }
205 return "";
206}
207
208std::string intersect(std::set<std::string> const& s1,
209 std::set<std::string> const& s2,

Callers 1

Calls 3

beginMethod · 0.45
endMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…