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
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
}
max3.hpp
Template function returns maximum.
main
int main()
Definition:
max3.cpp:10
max
T const & max(T const &a, T const &b)
Definition:
max1.hpp:9
main
cpp
template_basics
max3.cpp
Generated on Fri Feb 1 2019 09:33:32 for Gobelijn API documentation by
1.8.6