equal
deleted
inserted
replaced
2 |
2 |
3 /** @file smallvec.h Simple vector class that allows allocating an item without the need to copy this->data needlessly. */ |
3 /** @file smallvec.h Simple vector class that allows allocating an item without the need to copy this->data needlessly. */ |
4 |
4 |
5 #ifndef SMALLVEC_H |
5 #ifndef SMALLVEC_H |
6 #define SMALLVEC_H |
6 #define SMALLVEC_H |
|
7 |
|
8 #include "../core/alloc_func.hpp" |
|
9 #include "../core/math_func.hpp" |
7 |
10 |
8 template <typename T, uint S> |
11 template <typename T, uint S> |
9 struct SmallVector { |
12 struct SmallVector { |
10 T *data; |
13 T *data; |
11 uint items; |
14 uint items; |