MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / contains

Function contains

lib/utils.h:64–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62
63template<class Range, class T>
64bool contains(const Range& r, const T& x)
65{
66 return std::find(r.cbegin(), r.cend(), x) != r.cend();
67}
68
69template<class T>
70bool contains(const std::initializer_list<T>& r, const T& x)

Callers 15

setTokenValueFunction · 0.85
findAssociatedScopesMethod · 0.85
valueFlowLifetimeFunction · 0.85
isModifiedFunction · 0.85
updateRangeFunction · 0.85
isDefinitionMethod · 0.85
createScopeMethod · 0.85
createTokensMethod · 0.85
createTokensVarDeclMethod · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected