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

Function add1

code/2/2.3.cpp:14–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12// 传统 C++
13template <typename R, typename T, typename U>
14R add1(T x, U y) {
15 return x+y;
16}
17
18// 尾返回类型
19template <typename T, typename U>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected