diff options
| author | Enrico Borba <enricozb@users.noreply.github.com> | 2024-12-23 09:23:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-23 09:23:58 +0100 |
| commit | 52125e6336d596aebdd4da91080b3178ddca7449 (patch) | |
| tree | 27d3e5c01660d567f22fee621c97753f294256b0 /src/array_view.hh | |
| parent | 14cb35f62b36b2f1aa530adb5e31c05ff1347bfc (diff) | |
| parent | 9c458c50661446fc6e7295787b06422137af099d (diff) | |
Merge branch 'master' into enricozb/daemon-stdin
Diffstat (limited to 'src/array_view.hh')
| -rw-r--r-- | src/array_view.hh | 3 |
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>; |
