Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-cpp20
/ larger
Function
larger
Examples/NoModules/Chapter 10/Ex10_02.cpp:28–31 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
26
// Template for functions to return the larger of two values
27
template <typename T>
28
T larger(T a, T b)
29
{
30
return a > b ? a : b;
31
}
32
33
template<typename T>
34
T* larger(T* a, T* b)
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected