Pothos  0.3.0-ga8f2d4e2
The Pothos dataflow programming software suite
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
CompareTo.hpp
Go to the documentation of this file.
1 
11 #pragma once
12 #include <Pothos/Config.hpp>
13 #include <typeinfo>
14 #include <string>
15 
16 namespace Pothos {
17 namespace Util {
18 
26 template <typename T0, typename T1>
27 int compareTo(const T0 &v0, const T1 &v1)
28 {
29  if (v0 == v1) return 0;
30  if (v0 < v1) return -1;
31  else return +1;
32 }
33 
34 } //namespace Util
35 } //namespace Pothos
int compareTo(const T0 &v0, const T1 &v1)
Definition: CompareTo.hpp:27