C++ Logo


Advanced search

Re: [std-proposals] Array Index in Range-based For Loops

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Wed, 1 Mar 2023 10:59:16 +0200
On Wed, 1 Mar 2023 at 10:57, Pavel Vazharov via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>> It would be nice if range-based for loops had an implicit counter
>> variable
> I'm not sure views::enumerate made it to C++ 23 or not - https://github.com/cplusplus/papers/issues/875.
> The variable will be explicit in this case.

It did, so that should hopefully solve this problem.

Received on 2023-03-01 08:59:39