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

Function constParameterPointer_map_contains

test/cfg/std.cpp:5225–5231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5223}
5224
5225bool constParameterPointer_map_contains(const std::map<int*, int>& m, int* p) {
5226#if __cplusplus >= 202002L
5227 return m.contains(p);
5228#else
5229 return m.count(p) > 0;
5230#endif
5231}
5232
5233// cppcheck-suppress constParameterReference
5234void constParameterReference_push_back(std::vector<std::string>& v, std::string& s) { // #12661

Callers

nothing calls this directly

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected