For example, `std::span` does not have a `const_iterator` typedef before C++23, so compilation fails. Simply use `auto`. The `const` qualifier on `items` should already ensure, that such an iterator will be be used that the container deems appropriate for "const" access. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>