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

Function add

code/2/2.6.cpp:33–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31// 默认模板类型
32template<typename T = int, typename U = int>
33auto add(T x, U y) -> decltype(x+y) {
34 return x+y;
35}
36
37// sizeof...
38template<typename... Args>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected