CUBRID Engine  latest
lcm.h
Go to the documentation of this file.
1 // -*- C++ -*-
2 
3 #ifndef HL_LCM_H
4 #define HL_LCM_H
5 
6 #include "gcd.h"
7 
8 namespace HL {
9 
10  template <int a, int b>
11  class lcm;
12 
13  template <int a, int b>
14  class lcm
15  {
16  public:
17  enum { VALUE = (a * b) / (gcd<a, b>::VALUE) };
18  static const int value = (a * b) / (gcd<a, b>::value);
19  };
20 
21 }
22 
23 #endif
Definition: gcd.h:9
Definition: lcm.h:11
Definition: heaplayers.h:34
static const int value
Definition: lcm.h:18