diff options
author | Stefan Klug <stefan.klug@ideasonboard.com> | 2025-04-03 17:49:09 +0200 |
---|---|---|
committer | Stefan Klug <stefan.klug@ideasonboard.com> | 2025-05-20 09:46:12 +0200 |
commit | bcba580546807c4b6e138300a410f1dc63fb02b9 (patch) | |
tree | 0ec4dc4b14d2f8f897cbd1a9fba01caac464b888 /test/mapped-buffer.cpp | |
parent | aca9042abdf3d01f436dea147a82d37923c0eda6 (diff) |
libcamera: vector: Add a Span based constructor
When one wants to create a Vector from existing data, currently the only
way is via std::array. Add a Span based constructor to allow creation
from std::vectors and alike.
While at it, replace the manual loop with std::copy.
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'test/mapped-buffer.cpp')
0 files changed, 0 insertions, 0 deletions