Gobelijn API documentation
- generated for commit a0cbea7
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
}
main
int main()
Definition:
max2.cpp:9
max
T const & max(T const &a, T const &b)
Definition:
max1.hpp:9
max2.hpp
Template function returns maximum.
main
cpp
template_basics
max2.cpp
Generated on Fri Feb 1 2019 09:33:32 for Gobelijn API documentation by
1.8.6