MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / larger

Function larger

Examples/NoModules/Chapter 10/Ex10_03.cpp:8–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6// Supports implicit converion of differently-typed arguments
7template <typename T1, typename T2>
8auto larger(const T1& a, const T2& b)
9{
10 return a > b ? a : b;
11}
12
13int main()
14{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected