MCPcopy 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
12using foo = void(int); // 定义函数指针
13void functional(foo f) {
14 f(1);
15}
16
17int foo2(int para) {
18 return para;

Callers 1

mainFunction · 0.85

Calls 1

fFunction · 0.85

Tested by

no test coverage detected