aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-11 20:53:20 -0700
committerChris Robinson <[email protected]>2019-08-11 20:54:21 -0700
commitf290bf275189726ebc81610ef4f1f667ca723fe3 (patch)
tree30d560321a68a24c858ac622fb9db6b18d40b42f /common
parente200569cd319448d12099f27a2713c69da382d26 (diff)
Move vector.h to common
Diffstat (limited to 'common')
-rw-r--r--common/vector.h15
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 */