Gobelijn API documentation  - generated for commit a0cbea7
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
max2.hpp
Go to the documentation of this file.
1 #pragma once
2 
8 template <typename T>
9 inline T const& max(T const& a, T const& b)
10 {
11  return a < b ? b : a;
12 }
13 
14 inline int const& max(int const& a, int const& b) { return a < b ? b : a; }
15 
16 template <typename T>
17 inline T const& max(T const& a, T const& b, T const& c)
18 {
19  return max(max(a, b), c);
20 }
T const & max(T const &a, T const &b)
Definition: max2.hpp:9