Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
max3.cpp
Go to the documentation of this file.
1 
7 #include "max3.hpp"
8 #include <string>
9 
10 int main()
11 {
12  int a = 7;
13  int b = 42;
14  ::max(a, b);
15 
16  std::string s = "hey";
17  std::string t = "you";
18  ::max(s, t);
19 
20  int* p1 = &b;
21  int* p2 = &a;
22  ::max(p1, p2);
23 
24  char const* s1 = "David";
25  char const* s2 = "Nico";
26  ::max(s1, s2);
27 
28  return 0;
29 }
Template function returns maximum.
int main()
Definition: max3.cpp:10
T const & max(T const &a, T const &b)
Definition: max1.hpp:9