Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ plus
Function
plus
Exercises/NoModules/Chapter 10/Soln10_03.cpp:10–13 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
8
9
template <typename T>
10
T plus(const T& a, const T& b)
11
{
12
return a + b;
13
}
14
15
// Overload with another template for pointer types
16
template <typename T>
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected