MCPcopy 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
27template <typename T>
28T larger(T a, T b)
29{
30 return a > b ? a : b;
31}
32
33template<typename T>
34T* larger(T* a, T* b)

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected