MCPcopy Create free account
hub / github.com/changkun/modern-cpp-tutorial / add3

Function add3

code/2/2.3.cpp:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24// C++14 返回类型推导
25template <typename T, typename U>
26auto add3(T x, U y) {
27 return x+y;
28}
29
30int main() {
31 auto i = 5;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected