Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/changkun/modern-cpp-tutorial
/ foo
Function
foo
code/5/5.1.cpp:4–7 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
2
#include <memory>
3
4
void foo(std::shared_ptr<int> i)
5
{
6
(*i)++;
7
}
8
9
10
//struct Base {
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected