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

Function main

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

Source from the content-addressed store, hash-verified

11}
12
13int main()
14{
15 int small_int {10};
16 std::cout << "Larger of " << small_int << " and 9.6 is "
17 << larger(small_int, 9.6) << std::endl; // deduced return type: double
18
19 std::string a_string {"A"};
20 std::cout << "Larger of \"" << a_string << "\" and \"Z\" is \""
21 << larger(a_string, "Z") << '"' << std::endl; // deduced return type: std::string
22}
23

Callers

nothing calls this directly

Calls 1

largerFunction · 0.70

Tested by

no test coverage detected