Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
max2.cpp
Go to the documentation of this file.
1 
7 #include "max2.hpp"
8 
9 int main()
10 {
11  ::max(7, 42, 68); // template for three arguments
12  ::max(7.0, 42.0); // max<double> (argument deduction)
13  ::max('a', 'b'); // max<char> (argument deduction)
14  ::max(7, 42); // nontemplate for two ints
15  ::max<>(7, 42); // max<int> (argument deduction)
16  ::max<double>(7, 42); // max<double> (no argument deduction)
17 
18  return 0;
19 }
int main()
Definition: max2.cpp:9
T const & max(T const &a, T const &b)
Definition: max1.hpp:9
Template function returns maximum.