aboutsummaryrefslogtreecommitdiff
path: root/include/openvic-dataloader/detail/pinned_vector.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/openvic-dataloader/detail/pinned_vector.hpp')
-rw-r--r--include/openvic-dataloader/detail/pinned_vector.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/openvic-dataloader/detail/pinned_vector.hpp b/include/openvic-dataloader/detail/pinned_vector.hpp
new file mode 100644
index 0000000..42a7760
--- /dev/null
+++ b/include/openvic-dataloader/detail/pinned_vector.hpp
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <vmcontainer/detail.hpp>
+#include <vmcontainer/pinned_vector.hpp>
+
+namespace ovdl::detail {
+ static constexpr auto max_elements = mknejp::vmcontainer::max_elements;
+ static constexpr auto max_bytes = mknejp::vmcontainer::max_bytes;
+ static constexpr auto max_pages = mknejp::vmcontainer::max_pages;
+
+ using pinned_vector_traits = mknejp::vmcontainer::pinned_vector_traits;
+
+ template<typename T, typename Traits = pinned_vector_traits>
+ using pinned_vector = mknejp::vmcontainer::pinned_vector<T, Traits>;
+} \ No newline at end of file