Start fleshing out tracing library

This commit is contained in:
2018-02-13 19:13:31 -06:00
parent 7856d4e0bf
commit d5b0bb69df
9 changed files with 173 additions and 14 deletions

View File

@@ -8,6 +8,8 @@
#pragma once
#include "typetraits.hpp"
namespace ox {
template<typename T>
@@ -20,4 +22,13 @@ inline const T &max(const T &a, const T &b) {
return a > b ? a : b;
}
template<typename I>
inline I pow(I v, int e) {
I out = 1;
for (I i = 0; i < e; i++) {
out *= v;
}
return out;
}
}