Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/changkun/modern-cpp-tutorial
/ functional
Function
functional
code/3/3.2.cpp:13–15 ·
view source on GitHub ↗
定义函数指针
Source
from the content-addressed store, hash-verified
11
12
using foo = void(int); // 定义函数指针
13
void functional(foo f) {
14
f(1);
15
}
16
17
int foo2(int para) {
18
return para;
Callers
1
main
Function · 0.85
Calls
1
f
Function · 0.85
Tested by
no test coverage detected