diff --git a/CHANGES b/CHANGES index a556a28f8..910424e7e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +1.10.0-dev.10 | 2023-12-06 10:40:22 +0100 + + * Allow unsafe Vector iteration over underlying std::vector. (Arne Welzel, Corelight) + 1.10.0-dev.8 | 2023-11-17 14:04:16 +0100 * doc: Fix typo and outdated info for host applications (Anthony VEREZ) diff --git a/VERSION b/VERSION index 67982bdfb..057b56e75 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.10.0-dev.8 +1.10.0-dev.10 diff --git a/hilti/runtime/include/types/vector.h b/hilti/runtime/include/types/vector.h index 0b0845d5a..95cc1d327 100644 --- a/hilti/runtime/include/types/vector.h +++ b/hilti/runtime/include/types/vector.h @@ -490,6 +490,9 @@ class Vector : protected std::vector { auto cbegin() const { return const_iterator(0U, _control); } auto cend() const { return const_iterator(size(), _control); } + auto unsafeBegin() const { return V::cbegin(); } + auto unsafeEnd() const { return V::cend(); } + size_type size() const { return V::size(); } // Methods of `std::vector`.