summaryrefslogtreecommitdiff
path: root/src/array_view.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2024-12-03 22:46:17 +1100
committerMaxime Coste <mawww@kakoune.org>2024-12-04 18:51:26 +1100
commitdd1ea05bbcb989441ec5516d3b84562afa27d61a (patch)
tree79fd689428b03f5a679fe2c079c26a97ebf5af5a /src/array_view.hh
parent19f23e0ff81d4b97a7b95567e7ce6f3b49bac81d (diff)
Various small code simplifications/tweaks in ThreadedRegexVM
Diffstat (limited to 'src/array_view.hh')
-rw-r--r--src/array_view.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/array_view.hh b/src/array_view.hh
index 98f3c811..1409ebc3 100644
--- a/src/array_view.hh
+++ b/src/array_view.hh
@@ -77,6 +77,9 @@ template<typename It>
requires std::contiguous_iterator<It>
ArrayView(It begin, It end) -> ArrayView<std::iter_value_t<It>>;
+template<typename Container>
+ArrayView(Container& c) -> ArrayView<std::remove_reference_t<decltype(*c.data())>>;
+
template<typename T>
using ConstArrayView = ArrayView<const T>;