diff options
Diffstat (limited to 'backend/util.hpp')
-rw-r--r-- | backend/util.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/backend/util.hpp b/backend/util.hpp new file mode 100644 index 0000000..58b7977 --- /dev/null +++ b/backend/util.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include "util.h" + +template <typename T> +inline T min(const T & a, const T & b) { + return a < b ? a : b; +} + +template <typename T> +inline T max(const T & a, const T & b) { + return a < b ? b : a; +} + |