Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cppcheck-opensource/cppcheck
/ smartPtr_reset
Function
smartPtr_reset
test/cfg/std.cpp:5086–5092 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
5084
}
5085
5086
void smartPtr_reset()
5087
{
5088
std::unique_ptr<int> p(new int());
5089
p.reset(nullptr);
5090
//cppcheck-suppress nullPointer
5091
*p = 1;
5092
}
5093
5094
void smartPtr_release()
5095
{
Callers
nothing calls this directly
Calls
1
reset
Method · 0.45
Tested by
no test coverage detected