21 #include "pod_vector.h"
26 template <
typename T>
inline void copyConf(
27 const T* source, T* destination,
30 memcpy(destination, source, dim*
sizeof(T));
38 const int dim, tabSize;
42 explicit Allocator(
const int dim,
const int tabSize = 10000);
54 if (currentId >= tabSize)
57 return &(currentTab[ currentId * dim ]);
60 inline T* makeCopy(
const T* conf)
62 T* currentPlace = newConf();
63 copyConf<T>( conf, currentPlace, dim );