OpenMining  0.01
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
between.h
Go to the documentation of this file.
1 #ifndef between_h
2 #define between_h
3 
7 namespace utils
8 {
16  template<class T>
17  bool between(const T& val, const T& minval, const T& maxval)
18  {
19  bool retval = false;
20  if ((val >= minval) && (val <= maxval))
21  retval = true;
22  return (retval);
23  }
24 }
25 
26 #endif
bool between(const T &val, const T &minval, const T &maxval)
Definition: between.h:17