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