min.hpp 707 Bytes
Newer Older
1
// Software License for MTL
2
//
3
4
5
6
7
// Copyright (c) 2007 The Trustees of Indiana University.
//               2008 Dresden University of Technology and the Trustees of Indiana University.
//               2010 SimuNova UG (haftungsbeschränkt), www.simunova.com.
// All rights reserved.
// Authors: Peter Gottschling and Andrew Lumsdaine
8
//
9
// This file is part of the Matrix Template Library
10
//
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// See also license.mtl.txt in the distribution.

#ifndef META_MATH_MIN_INCLUDE
#define META_MATH_MIN_INCLUDE

namespace meta_math {

template <long int x, long int y>
struct min
{
  typedef long int type;
  static long int const value = x < y ? x : y;
};

} // namespace meta_math

#endif // META_MATH_MIN_INCLUDE