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

Function isCpp03ContainerSizeSlow

lib/checkstl.cpp:1756–1762  ·  view source on GitHub ↗

* Is container.size() slow? */

Source from the content-addressed store, hash-verified

1754 * Is container.size() slow?
1755 */
1756static bool isCpp03ContainerSizeSlow(const Token *tok)
1757{
1758 if (!tok)
1759 return false;
1760 const Variable* var = tok->variable();
1761 return var && var->isStlType("list");
1762}
1763
1764void CheckStlImpl::size()
1765{

Callers 1

sizeMethod · 0.85

Calls 1

variableMethod · 0.80

Tested by

no test coverage detected