C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::span<T>::iterator convertible to std::span<T const>::iterator

From: Hewill Kang <hewillk_at_[hidden]>
Date: Wed, 25 Oct 2023 22:03:40 +0800
>
> But it would be nice
> to have automatic conversion between std::span<T>::iterator convertible
> to std::span<T const>::iterator.


In C++23, you can just use span<T>::const_iterator.

Oliver Schädlich via Std-Proposals <std-proposals_at_[hidden]> 於
2023年10月25日 週三 下午9:42寫道:

> I'm using std::span a lot for some time, having more reliable code while
> debugging. But it would be nice
> to have automatic conversion between std::span<T>::iterator convertible
> to std::span<T const>::iterator.
>
> Olli
> --
> Std-Proposals mailing list
> Std-Proposals_at_[hidden]
> https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals
>

Received on 2023-10-25 14:03:54