Pothos  0.4.1-gb758ed46
The Pothos dataflow programming software suite
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
Definition: Testing.hpp:134
int compareTo(const T0 &v0, const T1 &v1)
Definition: CompareTo.hpp:27