dataflow_comparator-snippet.h 151 Bytes
Newer Older
Michael Schmid committed
1 2 3 4 5 6 7 8
template <typename T>
class Comparator {
public:
  void Run(const T& a, const T& b, T& x, T& y) {
    x = std::min(a,b);
    y = std::max(a,b);
  }
};