diff --git a/coord/ops.hpp b/coord/ops.hpp index 22b94f6b..0013a657 100644 --- a/coord/ops.hpp +++ b/coord/ops.hpp @@ -282,6 +282,18 @@ namespace util { T max (K k) { return *std::max_element (k.begin (), k.end ()); } + + + template class K> + bool + operator>= (K k, T t) + { return min (k) >= t; } + + + template class K> + bool + operator<= (K k, T t) + { return max (k) <= t; } } #endif