MCPcopy Create free account
hub / github.com/ddnet/ddnet / IsSubsetEquals

Function IsSubsetEquals

src/engine/client/serverbrowser.cpp:1987–1992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1985
1986template<typename TNamedElement, typename TElementName>
1987static bool IsSubsetEquals(const std::vector<const TNamedElement *> &vpLeft, const std::set<TElementName> &Right)
1988{
1989 return vpLeft.size() <= Right.size() && std::all_of(vpLeft.begin(), vpLeft.end(), [&](const TNamedElement *pElem) {
1990 return Right.contains(TElementName(pElem->Name()));
1991 });
1992}
1993
1994void CExcludedCommunityFilterList::Add(const char *pCommunityId)
1995{

Callers 3

AddMethod · 0.85
FilteredMethod · 0.85
EmptyMethod · 0.85

Calls 3

beginMethod · 0.80
endMethod · 0.80
NameMethod · 0.45

Tested by

no test coverage detected