summaryrefslogtreecommitdiff
path: root/src/vector.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2015-01-07 19:29:31 +0000
committerMaxime Coste <frrrwww@gmail.com>2015-01-07 19:29:31 +0000
commit9b30e7469a5832166b244a85065b3e1efb30cc90 (patch)
tree0ae0332a35b790bd58d07073517c358ab00daf47 /src/vector.hh
parentde12fe1cc67cb7b61c8a824c2bffbfbd75ba503f (diff)
Add initial memory domain allocation tracking support
Diffstat (limited to 'src/vector.hh')
-rw-r--r--src/vector.hh16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/vector.hh b/src/vector.hh
new file mode 100644
index 00000000..987b80f9
--- /dev/null
+++ b/src/vector.hh
@@ -0,0 +1,16 @@
+#ifndef vector_hh_INCLUDED
+#define vector_hh_INCLUDED
+
+#include "memory.hh"
+
+#include <vector>
+
+namespace Kakoune
+{
+
+template<typename T, MemoryDomain domain = MemoryDomain::Undefined>
+using Vector = std::vector<T, Allocator<T, domain>>;
+
+}
+
+#endif // vector_hh_INCLUDED