src/misc/smallvec.h
changeset 9427 af652de004a0
parent 9348 dc680f675138
child 9554 d677e63894db
equal deleted inserted replaced
9426:a77c8a4abcf5 9427:af652de004a0
     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;