diff options
author | Chris Robinson <[email protected]> | 2019-08-11 20:53:20 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-11 20:54:21 -0700 |
commit | f290bf275189726ebc81610ef4f1f667ca723fe3 (patch) | |
tree | 30d560321a68a24c858ac622fb9db6b18d40b42f /common | |
parent | e200569cd319448d12099f27a2713c69da382d26 (diff) |
Move vector.h to common
Diffstat (limited to 'common')
-rw-r--r-- | common/vector.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/vector.h b/common/vector.h new file mode 100644 index 00000000..1b69d6a7 --- /dev/null +++ b/common/vector.h @@ -0,0 +1,15 @@ +#ifndef AL_VECTOR_H +#define AL_VECTOR_H + +#include <vector> + +#include "almalloc.h" + +namespace al { + +template<typename T, size_t alignment=alignof(T)> +using vector = std::vector<T, al::allocator<T, alignment>>; + +} // namespace al + +#endif /* AL_VECTOR_H */ |