Test Circular Buffer

This commit is contained in:
Jaby
2022-12-23 20:33:36 +01:00
committed by Jaby
parent c6c0f10143
commit 291641e599
3 changed files with 12 additions and 1 deletions

View File

@@ -11,6 +11,14 @@ namespace JabyEngine {
constexpr ArrayRange() = default;
constexpr ArrayRange(T* start, size_t size) : start(start), size(size) {
}
constexpr T& operator[](size_t idx) {
return this->start[idx];
}
constexpr const T& operator[](size_t idx) const {
return this->start[idx];
}
};
}