C++ Logo


Advanced search

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

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Thu, 2 Mar 2023 11:35:15 +0200
On Thu, 2 Mar 2023 at 11:12, Frederick Virchanza Gotham via
Std-Proposals <std-proposals_at_[hidden]> wrote:

> How about the outermost is __i, and then the next inner one is __j,

It can't be __anything, those names are reserved. Use
std::views::enumerate, this is what it's for.

Received on 2023-03-02 09:35:28