diff options
author | George L. Albany <Megacake1234@gmail.com> | 2024-07-05 22:30:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-05 22:30:32 +0200 |
commit | 4a49007492152037bc1e9636b024cc67700e9dae (patch) | |
tree | 457b7fbda6d4470465c05d59b0ca51ed30628640 /include/openvic-dataloader/detail/pinned_vector.hpp | |
parent | deed8ec0ae23651529a58125012c1b4aab015d02 (diff) | |
parent | 3eb78b27505b602c1ccfa952c4cc00f942ccb2b9 (diff) |
Merge pull request #50 from OpenVicProject/simplify-string-interning
Fix string interning pointer invalidity for AST
Diffstat (limited to 'include/openvic-dataloader/detail/pinned_vector.hpp')
-rw-r--r-- | include/openvic-dataloader/detail/pinned_vector.hpp | 15 |
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 |